@@ -71,7 +71,9 @@ Options:
7171 --authorizationUrl <authorizationUrl> The authorizationUrl for openIdConnect -> oauth2 transformation
7272 --tokenUrl <tokenUrl> The tokenUrl for openIdConnect -> oauth2 transformation
7373 -d, --delete-examples-with-id If set, delete any JSON Schema examples that have an `id` property
74- -s, --scopes <scopes> If set, this JSON/YAML file describes the OpenID scopes
74+ --oidc-to-oath2 <scopes> Convert openIdConnect security to oath2.
75+ -s, --scopes <scopes> If set, this JSON/YAML file describes the OpenID scopes.
76+ This is an alias for --oidc-to-oath2
7577 -v, --verbose Verbose output
7678 -V, --version output the version number
7779 -h, --help display help for command
@@ -100,8 +102,10 @@ Change `openapi: 3.1.x` to `openapi: 3.0.3`
100102Replace ` openIdConnect ` security definition with an ` oauth2 ` security requirement
101103They are close enough, as far as code generation (such as ` openapi-generator ` )
102104is concerned - it just means an ` Authorization: header ` must have a valid token.
103- Use the options
104- to specify the ` authorizationUrl ` and ` tokenUrl ` for the
105+
106+ Note: This conversion is only performed if the ` --oidc-to-oauth2 ` option
107+ (or it's alias, ` --scopes ` ) is supplied.
108+ Use the other options to specify the ` authorizationUrl ` and ` tokenUrl ` for the
105109` oauth2 ` security definition.
106110
107111TODO: Fetch the openIdConnect connection info and extract the authorization and
@@ -134,9 +138,8 @@ accessToken:
134138` ` `
135139
136140The tool scans all the ` security` objects in all the operations to build
137- a list of the used scopes. The descriptions default to `TODO : describe the 'x' scope`
138- unless the `--scopes scopes.yaml` option is used; that file can
139- list the descriptions for the scopes as simple `scopeName : scope description`
141+ a list of the used scopes. The descriptions for the scopes should be
142+ be supplied in the `scopes.yaml`file as simple `scopeName : scope description`
140143pairs :
141144
142145` ` ` yaml
267270 myResponse:
268271 title: My Response
269272 description: Response from an API operation
270- type: arrray
273+ type: array
271274 items:
272275 type: [ 'string', 'null' ]
273276 ...
@@ -279,7 +282,7 @@ becomes
279282 myResponse:
280283 title: My Response
281284 description: Response from an API operation
282- type: arrray
285+ type: array
283286 items:
284287 type: string
285288 nullable: true
0 commit comments