Skip to content

Commit

Permalink
Add model and system version
Browse files Browse the repository at this point in the history
  • Loading branch information
daveih committed Mar 11, 2024
1 parent a8ed895 commit 3948b3f
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 2 deletions.
58 changes: 56 additions & 2 deletions docs/USDM_API.json
Original file line number Diff line number Diff line change
Expand Up @@ -5967,23 +5967,77 @@
"properties": {
"study": {
"$ref": "#/components/schemas/Study-Input"
},
"usdm_version": {
"type": "string",
"title": "Usdm Version"
},
"system_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "System Name"
},
"system_version": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "System Version"
}
},
"type": "object",
"required": [
"study"
"study",
"usdm_version"
],
"title": "Wrapper"
},
"Wrapper-Output": {
"properties": {
"study": {
"$ref": "#/components/schemas/Study-Output"
},
"usdm_version": {
"type": "string",
"title": "Usdm Version"
},
"system_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "System Name"
},
"system_version": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "System Version"
}
},
"type": "object",
"required": [
"study"
"study",
"usdm_version"
],
"title": "Wrapper"
}
Expand Down
28 changes: 28 additions & 0 deletions docs/USDM_API.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3819,17 +3819,45 @@ components:
properties:
study:
$ref: '#/components/schemas/Study-Input'
usdm_version:
type: string
title: Usdm Version
system_name:
anyOf:
- type: string
- type: 'null'
title: System Name
system_version:
anyOf:
- type: string
- type: 'null'
title: System Version
type: object
required:
- study
- usdm_version
title: Wrapper
Wrapper-Output:
properties:
study:
$ref: '#/components/schemas/Study-Output'
usdm_version:
type: string
title: Usdm Version
system_name:
anyOf:
- type: string
- type: 'null'
title: System Name
system_version:
anyOf:
- type: string
- type: 'null'
title: System Version
type: object
required:
- study
- usdm_version
title: Wrapper
tags:
- name: Production
Expand Down
4 changes: 4 additions & 0 deletions model/wrapper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from typing import Union
from .api_base_model import ApiBaseModel
from .study import Study

class Wrapper(ApiBaseModel):
study: Study
usdm_version: str
system_name: Union[str, None] = None
system_version: Union[str, None] = None

0 comments on commit 3948b3f

Please sign in to comment.