-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Description
Before releasing 3.0.0-RC0 we introduced a new type construct to the spec in the Components Object. For examples, schemas has the type of Map[string, Schema Object].
This was done to avoid creating a Schemas Object, Responses Object and so on, which would simply be those maps. I'd recommend we drop existing map objects and use the same construct for those, including Server Variables Object, Scopes Object and so on.
The exception would be the Paths Object as it imposes a pattern to the named field.
Following that, suggest we drop support for extensions in maps (except Paths Object) - there's no way to tell the difference between a name in the map and an extension. If someone wants to name a server variable x-y-z, it would be unclear whether it's an extension or a name of a variable.