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
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