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
It's possible for multiple schemas to resolve to the same name. When this happens, one schema will mask the other, which results in invalid OpenAPI specifications. For example, if we have the following contrived schema:
However, we can see that the definition for Two contains one property:test_child_two_two, and test_child_one_two is missing. I'd expect either an exception, or a way to automatically generate a unique name, if the schema name is already in use. The latter is similar to what apispec uses.
In both normalize_schema and get_swagger_title, it seems difficult to determine if the name is unique, as they are lacking access to additional context.
Any feedback on the appropriate steps to resolve this within the rebar framework?
The text was updated successfully, but these errors were encountered:
It's possible for multiple schemas to resolve to the same name. When this happens, one schema will mask the other, which results in invalid OpenAPI specifications. For example, if we have the following contrived schema:
This will generate the resulting definition:
However, we can see that the definition for
Two
contains one property:test_child_two_two
, andtest_child_one_two
is missing. I'd expect either an exception, or a way to automatically generate a unique name, if the schema name is already in use. The latter is similar to what apispec uses.In both normalize_schema and get_swagger_title, it seems difficult to determine if the name is unique, as they are lacking access to additional context.
Any feedback on the appropriate steps to resolve this within the rebar framework?
The text was updated successfully, but these errors were encountered: