Skip to content

Commit

Permalink
fix: Add format and type to schema MavenProxyApiRepository
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Horton <phorton@sonatype.com>
  • Loading branch information
madpah committed May 13, 2024
1 parent 99a5d8d commit 795686a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2014,6 +2014,9 @@ components:
properties:
cleanup:
$ref: '#/components/schemas/CleanupPolicyAttributes'
format:
default: maven2
type: string
httpClient:
$ref: '#/components/schemas/HttpClientAttributes'
maven:
Expand All @@ -2038,6 +2041,9 @@ components:
type: string
storage:
$ref: '#/components/schemas/StorageAttributes'
type:
default: hosted
type: string
url:
type: string
required:
Expand Down
8 changes: 8 additions & 0 deletions update-spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ def parse_version_from_server_header(header: str) -> str:
}

# Fix Schema `MavenProxyApiRepository`
json_spec['components']['schemas']['MavenProxyApiRepository']['properties']['format'] = {
'type': 'string',
'default': 'maven2'
}
json_spec['components']['schemas']['MavenProxyApiRepository']['properties']['type'] = {
'type': 'string',
'default': 'hosted'
}
json_spec['components']['schemas']['MavenProxyApiRepository']['properties']['url'] = {
'type': 'string'
}
Expand Down

0 comments on commit 795686a

Please sign in to comment.