Meaning of the string keys in maps inside the Components object #2712
Closed
arielmirra
started this conversation in
Enhancements
Replies: 2 comments 1 reply
-
In case of parameters, the actual parameter name is specified by the For example: components:
parameters:
limitParam: # <----- last part of the $ref path
in: query
name: limit # <----- actual parameter name
schema:
type: integer
minimum: 1
maximum: 100 This parameter is named parameters:
- $ref: '#/components/parameters/limitParam' |
Beta Was this translation helpful? Give feedback.
1 reply
-
Answered, closing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I noticed that in the componentsObject section of the spec each field is a
Map[string, Object]
. While debugging some code I realized that this key was used as the name of each parameter declared inparameters
. The spec does not make clear what this string means.Its an identifier? how should be used? What takes precedence in naming a parameter, this string, or the field
name
inside the parameter object? what happens if both are present?A little explanation should be added to avoid confusion with key names and actual object names.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions