You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I have general strategic question. This is not a bug or error.
Is it possible to add functionality to the package that will return a fully resolved schema, replacing all $refs and $injects and in it with real values, keeping schema structure?
So XDEBUG_SESSION_START key from base schema should be after resolving:
'XDEBUG_SESSION_START' => [
'type' => [
'string',
'null',
'boolean',
],
'$error' => ['type' => 'Provided value ({type}) must match the type: {expected}.'],
],
If $injects used for $slots xdebugSessionStart-parameter - then resolved schema must contain injected data.
Idea and motivation
If one day it became possible we can translate JSON Schema into Open API schema therefor having JSON Schema for each API route give you a chance to automattically build API docs for any route that was provided with validation schema
The text was updated successfully, but these errors were encountered:
outcomer
changed the title
JSON Schema to Oopen API (Swagger) schema
JSON Schema to Open API 3.0 (Swagger) schema
Oct 20, 2022
Hello!
I have general strategic question. This is not a bug or error.
Is it possible to add functionality to the package that will return a fully resolved schema, replacing all $refs and $injects and in it with real values, keeping schema structure?
Here is an example schema:
One of $ref used here:
So
XDEBUG_SESSION_START
key from base schema should be after resolving:If $injects used for $slots
xdebugSessionStart-parameter
- then resolved schema must contain injected data.Idea and motivation
If one day it became possible we can translate JSON Schema into Open API schema therefor having JSON Schema for each API route give you a chance to automattically build API docs for any route that was provided with validation schema
The text was updated successfully, but these errors were encountered: