Skip to content

Commit

Permalink
fix: Schema StorageAttributes - missing Write Policy
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 ff0b570 commit 0585b2f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3372,6 +3372,14 @@ components:
for the repository format
example: true
type: boolean
writePolicy:
description: Controls if deployments of and updates to assets are allowed
enum:
- allow
- allow_once
- deny
example: allow_once
type: string
required:
- blobStoreName
- strictContentTypeValidation
Expand Down
7 changes: 7 additions & 0 deletions update-spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ def parse_version_from_server_header(header: str) -> str:
'type': 'string'
}

# Fix Schema `StorageAttributes` - missing Write Policy
json_spec['components']['schemas']['StorageAttributes']['properties']['writePolicy'] = {
'description': 'Controls if deployments of and updates to assets are allowed',
'enum': ['allow', 'allow_once', 'deny'],
'example': 'allow_once',
'type': 'string'
}

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

0 comments on commit 0585b2f

Please sign in to comment.