Skip to content

Commit

Permalink
fix: Schema HttpClientConnectionAuthenticationAttributes to include…
Browse files Browse the repository at this point in the history
… `preemptive`

Signed-off-by: Paul Horton <phorton@sonatype.com>
  • Loading branch information
madpah committed May 15, 2024
1 parent 13d5131 commit 82c5a82
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions spec/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1821,6 +1821,11 @@ components:
type: string
password:
type: string
preemptive:
description: Whether to use pre-emptive authentication. Use with caution.
Defaults to false.
example: 'false'
type: boolean
type:
description: Authentication type
enum:
Expand Down
8 changes: 7 additions & 1 deletion update-spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def parse_version_from_server_header(header: str) -> str:
}
print(f' Fixed `{s}`')


# Fix Schema `StorageAttributes` - missing Write Policy
json_spec['components']['schemas']['StorageAttributes']['properties']['writePolicy'] = {
'description': 'Controls if deployments of and updates to assets are allowed',
Expand All @@ -139,6 +138,13 @@ def parse_version_from_server_header(header: str) -> str:
'type': 'string'
}

# Update schema `HttpClientConnectionAuthenticationAttributes` to also include `preemptive`
json_spec['components']['schemas']['HttpClientConnectionAuthenticationAttributes']['properties']['preemptive'] = {
'description': 'Whether to use pre-emptive authentication. Use with caution. Defaults to false.',
'example': 'false',
'type': 'boolean'
}

# # Fix Response schema for GET /api/v2/applications
# if 'paths' in json_spec and '/api/v2/applications' in json_spec['paths']:
# if 'get' in json_spec['paths']['/api/v2/applications']:
Expand Down

0 comments on commit 82c5a82

Please sign in to comment.