Skip to content

Commit

Permalink
(PC-32196)[API] doc: public api: create event: rm MusicTypeEnum
Browse files Browse the repository at this point in the history
Only TiteliveMusicTypeEnum should be used.
  • Loading branch information
jbaudet-pass committed Dec 13, 2024
1 parent 705655a commit b4ed6f6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 190 deletions.
210 changes: 21 additions & 189 deletions api/documentation/static/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
}
},
"required": [
Expand All @@ -92,15 +84,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
}
},
"required": [
Expand All @@ -120,15 +104,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
}
},
"required": [
Expand Down Expand Up @@ -1085,15 +1061,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -1373,15 +1341,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -1410,15 +1370,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -1446,15 +1398,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -2179,15 +2123,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -2216,15 +2152,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -2252,15 +2180,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -3467,15 +3387,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -3504,15 +3416,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -3540,15 +3444,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -4633,15 +4529,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -4670,15 +4558,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -4706,15 +4586,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -8128,15 +8000,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -8168,15 +8032,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -8479,15 +8335,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -8520,15 +8368,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down Expand Up @@ -8560,15 +8400,7 @@
"type": "string"
},
"musicType": {
"anyOf": [
{
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
{
"$ref": "#/components/schemas/MusicTypeEnum"
}
],
"title": "Musictype"
"$ref": "#/components/schemas/TiteliveMusicTypeEnum"
},
"performer": {
"title": "Performer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class DigitalLocation(serialization.ConfiguredBaseModel):
class ExtraDataModel(serialization.ConfiguredBaseModel):
author: str | None = pydantic_v1.Field(example="Jane Doe")
ean: str | None = fields.EAN
musicType: TiteliveMusicTypeEnum | MusicTypeEnum | None # type: ignore[valid-type]
musicType: TiteliveMusicTypeEnum | None # type: ignore[valid-type]
performer: str | None = pydantic_v1.Field(example="Jane Doe")
stageDirector: str | None = pydantic_v1.Field(example="Jane Doe")
showType: ShowTypeEnum | None # type: ignore[valid-type]
Expand Down

0 comments on commit b4ed6f6

Please sign in to comment.