The Security Scheme Object lists the following fields as REQUIRED:
type
name
in
scheme
flows
openIdConnectUrl
The majority of examples (in the same doc) that include SecurityScheme objects, however, are missing many of these fields.
I'm guessing this is a spec error, that whether or not these fields are required is based on the value of the Security Scheme object's type field? If that's correct, does the spec need updating to clarify when these fields are required?
There's a problem with the OAuth Flow Object, where tokenUrl is listed as a REQUIRED field, but is missing from the implicit flow of the inline examples. I'm guessing that this is related - another field that is only required depending on the flow type? If so, does the spec need updating to clarify that too?