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
Describe the bug
When a DocumentedAPIProperty is defined, it affects only the pure json schema and that schema then only contains the newly defined properties, not the automatically generated ones. These changes don't reflect what the API actually does.
To Reproduce
Go to partdb/api and observe the schema of GET /api/attachments/{id}
The schema for application/ld+json looks like this:
Describe the bug
When a DocumentedAPIProperty is defined, it affects only the pure json schema and that schema then only contains the newly defined properties, not the automatically generated ones. These changes don't reflect what the API actually does.
To Reproduce
Go to partdb/api and observe the schema of GET /api/attachments/{id}
The schema for
application/ld+json
looks like this:The schema for
application/json
looks like this:Expected behavior
The specified property should be added to all schemata and leave the autogenerated parts of each schema untouched.
Server Side
The text was updated successfully, but these errors were encountered: