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
I have rules() that should tag object members as required.
For the generated scribe html file, everything not-required is correctly tagged as optional.
However, the generated openapi.yaml does not set required for all fields that are not optional.
Interestingly, member of objects in objects do not seem to work, while members of objects in arrays do.
Scribe version
4.38.0
PHP version
8.3.10 (cli)
Framework
Laravel
Framework version
10.48.20
Scribe config
What happened?
I have
rules()
that should tag object members asrequired
.For the generated scribe html file, everything not-required is correctly tagged as optional.
However, the generated openapi.yaml does not set required for all fields that are not optional.
Interestingly, member of objects in objects do not seem to work, while members of objects in arrays do.
Nested Object case (does not work)
This is a section of my rules function:
This is the generated (& rendered) OpenAPI document:
And this is what I would expect (I changed the openapi doc manually):
Array of Objects case (does work!)
rules()
snippet:Generated OpenAPI doc:
Docs
The text was updated successfully, but these errors were encountered: