Skip to content

Conversation

@JakovKnezovicc
Copy link
Contributor

This PR introduces two opt-in schema decorators to improve OpenAPI / JSON Schema accuracy in API Platform.

JSON-LD input schema decoration
Ensures referenced object schemas in JSON-LD input schemas (POST/PUT/PATCH) expose an @id property, allowing clients to submit IRIs for related resources.
Applied immediately after API Platform’s validator schema decoration.

Default required output properties
Marks output properties as required by default when their native type is non-nullable, improving schema correctness without requiring explicit required=true metadata.

@JakovKnezovicc JakovKnezovicc force-pushed the NGSTACK-1017-schema-decoration branch from 047e2f4 to 7c7b60a Compare January 19, 2026 10:49
@JakovKnezovicc JakovKnezovicc changed the base branch from master to NGSTACK-1017-schema-processor January 19, 2026 10:50
@JakovKnezovicc JakovKnezovicc force-pushed the NGSTACK-1017-schema-decoration branch from 7c7b60a to 1af3425 Compare January 19, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants