-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
Hello! Currently we have a bunch of hardcoded paths to some objects:
instance FromJSON (Referenced Schema) where parseJSON = referencedParseJSON "#/components/schemas/"
instance FromJSON (Referenced Param) where parseJSON = referencedParseJSON "#/components/parameters/"
instance FromJSON (Referenced Response) where parseJSON = referencedParseJSON "#/components/responses/"
instance FromJSON (Referenced RequestBody) where parseJSON = referencedParseJSON "#/components/requestBodies/"
instance FromJSON (Referenced Example) where parseJSON = referencedParseJSON "#/components/examples/"
instance FromJSON (Referenced Header) where parseJSON = referencedParseJSON "#/components/headers/"
instance FromJSON (Referenced Link) where parseJSON = referencedParseJSON "#/components/links/"
instance FromJSON (Referenced Callback) where parseJSON = referencedParseJSON "#/components/callbacks/"
I couldn't find any rule in the specification according to this decision. The only information I found is the notation for $ref objects: https://swagger.io/docs/specification/using-ref/
Currently I work with API that has its own custom paths. Can anyone confirm or refute that paths to these objects may be custom?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels