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
The question is whether it’s better to create a dedicated error struct that implements JsonSchema or if we can add this functionality to an existing struct with a feature flag, such as a rocket_okapi feature. The goal is to simplify the maintenance of OpenAPI documentation.
Currently, without this, manual specifications need to be updated each time, which can become cumbersome.
Questions:
Should we create a new error struct that implements JsonSchema for better OpenAPI support, or is it feasible to extend an existing struct by adding a feature (e.g., via rocket_okapi)?
Would adding this feature make it significantly easier to maintain OpenAPI documentation, particularly for custom error responses?
How can we ensure this approach is scalable, especially in projects with multiple custom error types?
Suggestions:
Explore the possibility of adding a rocket_okapi feature flag that enables easier OpenAPI documentation maintenance by integrating error structs with JsonSchema.
Investigate whether adding this to existing structs would simplify OpenAPI documentation updates.
I’d be happy to take on the implementation after determining the best approach.
I’m raising this issue to gather feedback and ideas on how to make OpenAPI documentation management easier and more scalable.
The text was updated successfully, but these errors were encountered:
The question is whether it’s better to create a dedicated error struct that implements
JsonSchema
or if we can add this functionality to an existing struct with a feature flag, such as arocket_okapi
feature. The goal is to simplify the maintenance of OpenAPI documentation.Currently, without this, manual specifications need to be updated each time, which can become cumbersome.
Questions:
JsonSchema
for better OpenAPI support, or is it feasible to extend an existing struct by adding a feature (e.g., viarocket_okapi
)?Suggestions:
rocket_okapi
feature flag that enables easier OpenAPI documentation maintenance by integrating error structs withJsonSchema
.I’m raising this issue to gather feedback and ideas on how to make OpenAPI documentation management easier and more scalable.
The text was updated successfully, but these errors were encountered: