diff --git a/pydantic_schemaorg/AMRadioChannel.py b/pydantic_schemaorg/AMRadioChannel.py index 588f4f90..2f87568c 100644 --- a/pydantic_schemaorg/AMRadioChannel.py +++ b/pydantic_schemaorg/AMRadioChannel.py @@ -11,5 +11,5 @@ class AMRadioChannel(RadioChannel): See: https://schema.org/AMRadioChannel Model depth: 5 """ - type_: str = Field(default="AMRadioChannel", alias='@type', constant=True) + type_: str = Field(default="AMRadioChannel", alias='@type', const=True) diff --git a/pydantic_schemaorg/APIReference.py b/pydantic_schemaorg/APIReference.py index c5fcb0ee..d823a2a6 100644 --- a/pydantic_schemaorg/APIReference.py +++ b/pydantic_schemaorg/APIReference.py @@ -14,7 +14,7 @@ class APIReference(TechArticle): See: https://schema.org/APIReference Model depth: 5 """ - type_: str = Field(default="APIReference", alias='@type', constant=True) + type_: str = Field(default="APIReference", alias='@type', const=True) assemblyVersion: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Associated product/technology version. e.g., .NET Framework 4.5.", diff --git a/pydantic_schemaorg/Abdomen.py b/pydantic_schemaorg/Abdomen.py index 7121bcbc..1b1acf62 100644 --- a/pydantic_schemaorg/Abdomen.py +++ b/pydantic_schemaorg/Abdomen.py @@ -11,5 +11,5 @@ class Abdomen(PhysicalExam): See: https://schema.org/Abdomen Model depth: 5 """ - type_: str = Field(default="Abdomen", alias='@type', constant=True) + type_: str = Field(default="Abdomen", alias='@type', const=True) diff --git a/pydantic_schemaorg/AboutPage.py b/pydantic_schemaorg/AboutPage.py index afa256e8..3d53a8e5 100644 --- a/pydantic_schemaorg/AboutPage.py +++ b/pydantic_schemaorg/AboutPage.py @@ -11,5 +11,5 @@ class AboutPage(WebPage): See: https://schema.org/AboutPage Model depth: 4 """ - type_: str = Field(default="AboutPage", alias='@type', constant=True) + type_: str = Field(default="AboutPage", alias='@type', const=True) diff --git a/pydantic_schemaorg/AcceptAction.py b/pydantic_schemaorg/AcceptAction.py index 79ceb924..3029a8ec 100644 --- a/pydantic_schemaorg/AcceptAction.py +++ b/pydantic_schemaorg/AcceptAction.py @@ -12,5 +12,5 @@ class AcceptAction(AllocateAction): See: https://schema.org/AcceptAction Model depth: 5 """ - type_: str = Field(default="AcceptAction", alias='@type', constant=True) + type_: str = Field(default="AcceptAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Accommodation.py b/pydantic_schemaorg/Accommodation.py index 0a461a22..c3adc486 100644 --- a/pydantic_schemaorg/Accommodation.py +++ b/pydantic_schemaorg/Accommodation.py @@ -1,9 +1,8 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import AnyUrl, StrictBool, StrictInt, StrictFloat from typing import List, Optional, Union -from pydantic import AnyUrl, StrictBool from pydantic import Field @@ -20,8 +19,8 @@ class Accommodation(Place): See: https://schema.org/Accommodation Model depth: 3 """ - type_: str = Field(default="Accommodation", alias='@type', constant=True) - numberOfBedrooms: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + type_: str = Field(default="Accommodation", alias='@type', const=True) + numberOfBedrooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]]" "or [[FloorPlan]].", @@ -37,17 +36,17 @@ class Accommodation(Place): default=None, description="Indications regarding the permitted usage of the accommodation.", ) - numberOfPartialBathrooms: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + numberOfPartialBathrooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]." "This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field).", ) - yearBuilt: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + yearBuilt: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt" "field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field).", ) - leaseLength: Optional[Union[List[Union['QuantitativeValue', 'Duration', str]], 'QuantitativeValue', 'Duration', str]] = Field( + leaseLength: Optional[Union[List[Union['Duration', 'QuantitativeValue', str]], 'Duration', 'QuantitativeValue', str]] = Field( default=None, description="Length of the lease for some [[Accommodation]], either particular to some [[Offer]]" "or in some cases intrinsic to the property.", @@ -58,7 +57,7 @@ class Accommodation(Place): "property does not make a statement about whether the feature is included in an offer for" "the main accommodation or available at extra costs.", ) - numberOfRooms: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + numberOfRooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The number of rooms (excluding bathrooms and closets) of the accommodation or lodging" "business. Typical unit code(s): ROM for room or C62 for no unit. The type of room can be" @@ -96,7 +95,7 @@ class Accommodation(Place): default=None, description="A floorplan of some [[Accommodation]].", ) - numberOfFullBathrooms: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + numberOfFullBathrooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]." "This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).", diff --git a/pydantic_schemaorg/AccountingService.py b/pydantic_schemaorg/AccountingService.py index 78c03566..3d1dc659 100644 --- a/pydantic_schemaorg/AccountingService.py +++ b/pydantic_schemaorg/AccountingService.py @@ -12,5 +12,5 @@ class AccountingService(FinancialService): See: https://schema.org/AccountingService Model depth: 5 """ - type_: str = Field(default="AccountingService", alias='@type', constant=True) + type_: str = Field(default="AccountingService", alias='@type', const=True) diff --git a/pydantic_schemaorg/AchieveAction.py b/pydantic_schemaorg/AchieveAction.py index 59d50176..0b3e6610 100644 --- a/pydantic_schemaorg/AchieveAction.py +++ b/pydantic_schemaorg/AchieveAction.py @@ -12,5 +12,5 @@ class AchieveAction(Action): See: https://schema.org/AchieveAction Model depth: 3 """ - type_: str = Field(default="AchieveAction", alias='@type', constant=True) + type_: str = Field(default="AchieveAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Action.py b/pydantic_schemaorg/Action.py index f03ca5a2..87ca8741 100644 --- a/pydantic_schemaorg/Action.py +++ b/pydantic_schemaorg/Action.py @@ -19,7 +19,7 @@ class Action(Thing): See: https://schema.org/Action Model depth: 2 """ - type_: str = Field(default="Action", alias='@type', constant=True) + type_: str = Field(default="Action", alias='@type', const=True) result: Optional[Union[List[Union['Thing', str]], 'Thing', str]] = Field( default=None, description="The result produced in the action. e.g. John wrote *a book*.", @@ -30,7 +30,7 @@ class Action(Thing): "Also known as the semantic roles patient, affected or undergoer (which change their" "state) or theme (which doesn't). e.g. John read *a book*.", ) - participant: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + participant: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="Other co-agents that participated in the action indirectly. e.g. John wrote a book with" "*Steve*.", @@ -39,7 +39,7 @@ class Action(Thing): default=None, description="For failed actions, more information on the cause of the failure.", ) - location: Optional[Union[List[Union[str, 'Text', 'Place', 'VirtualLocation', 'PostalAddress']], str, 'Text', 'Place', 'VirtualLocation', 'PostalAddress']] = Field( + location: Optional[Union[List[Union[str, 'Text', 'PostalAddress', 'Place', 'VirtualLocation']], str, 'Text', 'PostalAddress', 'Place', 'VirtualLocation']] = Field( default=None, description="The location of, for example, where an event is happening, where an organization is located," "or where an action takes place.", @@ -53,7 +53,7 @@ class Action(Thing): "Event uses startDate/endDate instead of startTime/endTime, even when describing" "dates with times. This situation may be clarified in future revisions.", ) - agent: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + agent: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote" "a book.", @@ -83,12 +83,12 @@ class Action(Thing): if TYPE_CHECKING: from pydantic_schemaorg.Thing import Thing - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Text import Text + from pydantic_schemaorg.PostalAddress import PostalAddress from pydantic_schemaorg.Place import Place from pydantic_schemaorg.VirtualLocation import VirtualLocation - from pydantic_schemaorg.PostalAddress import PostalAddress from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Time import Time from pydantic_schemaorg.EntryPoint import EntryPoint diff --git a/pydantic_schemaorg/ActionAccessSpecification.py b/pydantic_schemaorg/ActionAccessSpecification.py index daa22674..a897fc9a 100644 --- a/pydantic_schemaorg/ActionAccessSpecification.py +++ b/pydantic_schemaorg/ActionAccessSpecification.py @@ -16,8 +16,8 @@ class ActionAccessSpecification(Intangible): See: https://schema.org/ActionAccessSpecification Model depth: 3 """ - type_: str = Field(default="ActionAccessSpecification", alias='@type', constant=True) - category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']], AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']] = Field( + type_: str = Field(default="ActionAccessSpecification", alias='@type', const=True) + category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']], AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']] = Field( default=None, description="A category for the item. Greater signs or slashes can be used to informally indicate a" "category hierarchy.", @@ -46,7 +46,7 @@ class ActionAccessSpecification(Intangible): default=None, description="The end of the availability of the product or service included in the offer.", ) - ineligibleRegion: Optional[Union[List[Union[str, 'Text', 'GeoShape', 'Place']], str, 'Text', 'GeoShape', 'Place']] = Field( + ineligibleRegion: Optional[Union[List[Union[str, 'Text', 'Place', 'GeoShape']], str, 'Text', 'Place', 'GeoShape']] = Field( default=None, description="The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for" "the geo-political region(s) for which the offer or delivery charge specification is" @@ -57,8 +57,8 @@ class ActionAccessSpecification(Intangible): if TYPE_CHECKING: from pydantic_schemaorg.URL import URL from pydantic_schemaorg.Text import Text - from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.PhysicalActivityCategory import PhysicalActivityCategory + from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Time import Time from pydantic_schemaorg.Date import Date diff --git a/pydantic_schemaorg/ActionStatusType.py b/pydantic_schemaorg/ActionStatusType.py index 469a0b13..3e4917e1 100644 --- a/pydantic_schemaorg/ActionStatusType.py +++ b/pydantic_schemaorg/ActionStatusType.py @@ -11,5 +11,5 @@ class ActionStatusType(StatusEnumeration): See: https://schema.org/ActionStatusType Model depth: 5 """ - type_: str = Field(default="ActionStatusType", alias='@type', constant=True) + type_: str = Field(default="ActionStatusType", alias='@type', const=True) diff --git a/pydantic_schemaorg/ActivateAction.py b/pydantic_schemaorg/ActivateAction.py index db66472c..209341e9 100644 --- a/pydantic_schemaorg/ActivateAction.py +++ b/pydantic_schemaorg/ActivateAction.py @@ -12,5 +12,5 @@ class ActivateAction(ControlAction): See: https://schema.org/ActivateAction Model depth: 4 """ - type_: str = Field(default="ActivateAction", alias='@type', constant=True) + type_: str = Field(default="ActivateAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/ActivationFee.py b/pydantic_schemaorg/ActivationFee.py index 5e8fa01f..58a2a30c 100644 --- a/pydantic_schemaorg/ActivationFee.py +++ b/pydantic_schemaorg/ActivationFee.py @@ -12,5 +12,5 @@ class ActivationFee(PriceComponentTypeEnumeration): See: https://schema.org/ActivationFee Model depth: 5 """ - type_: str = Field(default="ActivationFee", alias='@type', constant=True) + type_: str = Field(default="ActivationFee", alias='@type', const=True) diff --git a/pydantic_schemaorg/ActiveActionStatus.py b/pydantic_schemaorg/ActiveActionStatus.py index 883a0c6c..2db49950 100644 --- a/pydantic_schemaorg/ActiveActionStatus.py +++ b/pydantic_schemaorg/ActiveActionStatus.py @@ -11,5 +11,5 @@ class ActiveActionStatus(ActionStatusType): See: https://schema.org/ActiveActionStatus Model depth: 6 """ - type_: str = Field(default="ActiveActionStatus", alias='@type', constant=True) + type_: str = Field(default="ActiveActionStatus", alias='@type', const=True) diff --git a/pydantic_schemaorg/ActiveNotRecruiting.py b/pydantic_schemaorg/ActiveNotRecruiting.py index 14baf2bb..4bdb315c 100644 --- a/pydantic_schemaorg/ActiveNotRecruiting.py +++ b/pydantic_schemaorg/ActiveNotRecruiting.py @@ -11,5 +11,5 @@ class ActiveNotRecruiting(MedicalStudyStatus): See: https://schema.org/ActiveNotRecruiting Model depth: 6 """ - type_: str = Field(default="ActiveNotRecruiting", alias='@type', constant=True) + type_: str = Field(default="ActiveNotRecruiting", alias='@type', const=True) diff --git a/pydantic_schemaorg/AddAction.py b/pydantic_schemaorg/AddAction.py index 83fafead..bf4b3ef1 100644 --- a/pydantic_schemaorg/AddAction.py +++ b/pydantic_schemaorg/AddAction.py @@ -11,5 +11,5 @@ class AddAction(UpdateAction): See: https://schema.org/AddAction Model depth: 4 """ - type_: str = Field(default="AddAction", alias='@type', constant=True) + type_: str = Field(default="AddAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/AdministrativeArea.py b/pydantic_schemaorg/AdministrativeArea.py index 4da0a404..fb687371 100644 --- a/pydantic_schemaorg/AdministrativeArea.py +++ b/pydantic_schemaorg/AdministrativeArea.py @@ -11,5 +11,5 @@ class AdministrativeArea(Place): See: https://schema.org/AdministrativeArea Model depth: 3 """ - type_: str = Field(default="AdministrativeArea", alias='@type', constant=True) + type_: str = Field(default="AdministrativeArea", alias='@type', const=True) diff --git a/pydantic_schemaorg/AdultEntertainment.py b/pydantic_schemaorg/AdultEntertainment.py index 819f768e..a32df7d0 100644 --- a/pydantic_schemaorg/AdultEntertainment.py +++ b/pydantic_schemaorg/AdultEntertainment.py @@ -11,5 +11,5 @@ class AdultEntertainment(EntertainmentBusiness): See: https://schema.org/AdultEntertainment Model depth: 5 """ - type_: str = Field(default="AdultEntertainment", alias='@type', constant=True) + type_: str = Field(default="AdultEntertainment", alias='@type', const=True) diff --git a/pydantic_schemaorg/AdvertiserContentArticle.py b/pydantic_schemaorg/AdvertiserContentArticle.py index 5296fa4a..5bd5de0f 100644 --- a/pydantic_schemaorg/AdvertiserContentArticle.py +++ b/pydantic_schemaorg/AdvertiserContentArticle.py @@ -13,5 +13,5 @@ class AdvertiserContentArticle(Article): See: https://schema.org/AdvertiserContentArticle Model depth: 4 """ - type_: str = Field(default="AdvertiserContentArticle", alias='@type', constant=True) + type_: str = Field(default="AdvertiserContentArticle", alias='@type', const=True) diff --git a/pydantic_schemaorg/AerobicActivity.py b/pydantic_schemaorg/AerobicActivity.py index 4fb33b72..d77f05d1 100644 --- a/pydantic_schemaorg/AerobicActivity.py +++ b/pydantic_schemaorg/AerobicActivity.py @@ -13,5 +13,5 @@ class AerobicActivity(PhysicalActivityCategory): See: https://schema.org/AerobicActivity Model depth: 5 """ - type_: str = Field(default="AerobicActivity", alias='@type', constant=True) + type_: str = Field(default="AerobicActivity", alias='@type', const=True) diff --git a/pydantic_schemaorg/AggregateOffer.py b/pydantic_schemaorg/AggregateOffer.py index 0b98da7d..1e664a5e 100644 --- a/pydantic_schemaorg/AggregateOffer.py +++ b/pydantic_schemaorg/AggregateOffer.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -19,7 +19,7 @@ class AggregateOffer(Offer): See: https://schema.org/AggregateOffer Model depth: 4 """ - type_: str = Field(default="AggregateOffer", alias='@type', constant=True) + type_: str = Field(default="AggregateOffer", alias='@type', const=True) offers: Optional[Union[List[Union['Offer', 'Demand', str]], 'Offer', 'Demand', str]] = Field( default=None, description="An offer to provide this item—for example, an offer to sell a product, rent the" @@ -29,14 +29,14 @@ class AggregateOffer(Offer): "of common types, it can be used in others. In that case, using a second type, such as Product" "or a subtype of Product, can clarify the nature of the offer.", ) - lowPrice: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + lowPrice: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The lowest price of all offers available. Usage guidelines: * Use values from 0123456789" "(Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially" "similiar Unicode symbols. * Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to" "indicate a decimal point. Avoid using these symbols as a readability separator.", ) - highPrice: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + highPrice: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The highest price of all offers available. Usage guidelines: * Use values from 0123456789" "(Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially" diff --git a/pydantic_schemaorg/AggregateRating.py b/pydantic_schemaorg/AggregateRating.py index 56605785..9c8604c6 100644 --- a/pydantic_schemaorg/AggregateRating.py +++ b/pydantic_schemaorg/AggregateRating.py @@ -14,7 +14,7 @@ class AggregateRating(Rating): See: https://schema.org/AggregateRating Model depth: 4 """ - type_: str = Field(default="AggregateRating", alias='@type', constant=True) + type_: str = Field(default="AggregateRating", alias='@type', const=True) reviewCount: Optional[Union[List[Union[int, 'Integer', str]], int, 'Integer', str]] = Field( default=None, description="The count of total number of reviews.", diff --git a/pydantic_schemaorg/AgreeAction.py b/pydantic_schemaorg/AgreeAction.py index 496d8abc..422eabf1 100644 --- a/pydantic_schemaorg/AgreeAction.py +++ b/pydantic_schemaorg/AgreeAction.py @@ -12,5 +12,5 @@ class AgreeAction(ReactAction): See: https://schema.org/AgreeAction Model depth: 5 """ - type_: str = Field(default="AgreeAction", alias='@type', constant=True) + type_: str = Field(default="AgreeAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Airline.py b/pydantic_schemaorg/Airline.py index 2929a153..07dc9a01 100644 --- a/pydantic_schemaorg/Airline.py +++ b/pydantic_schemaorg/Airline.py @@ -14,7 +14,7 @@ class Airline(Organization): See: https://schema.org/Airline Model depth: 3 """ - type_: str = Field(default="Airline", alias='@type', constant=True) + type_: str = Field(default="Airline", alias='@type', const=True) boardingPolicy: Optional[Union[List[Union['BoardingPolicyType', str]], 'BoardingPolicyType', str]] = Field( default=None, description="The type of boarding policy used by the airline (e.g. zone-based or group-based).", diff --git a/pydantic_schemaorg/Airport.py b/pydantic_schemaorg/Airport.py index 6063547e..f868234f 100644 --- a/pydantic_schemaorg/Airport.py +++ b/pydantic_schemaorg/Airport.py @@ -14,7 +14,7 @@ class Airport(CivicStructure): See: https://schema.org/Airport Model depth: 4 """ - type_: str = Field(default="Airport", alias='@type', constant=True) + type_: str = Field(default="Airport", alias='@type', const=True) iataCode: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="IATA identifier for an airline or airport.", diff --git a/pydantic_schemaorg/AlbumRelease.py b/pydantic_schemaorg/AlbumRelease.py index 2aa8ad3d..4b9d04ae 100644 --- a/pydantic_schemaorg/AlbumRelease.py +++ b/pydantic_schemaorg/AlbumRelease.py @@ -11,5 +11,5 @@ class AlbumRelease(MusicAlbumReleaseType): See: https://schema.org/AlbumRelease Model depth: 5 """ - type_: str = Field(default="AlbumRelease", alias='@type', constant=True) + type_: str = Field(default="AlbumRelease", alias='@type', const=True) diff --git a/pydantic_schemaorg/AlignmentObject.py b/pydantic_schemaorg/AlignmentObject.py index fa9f474b..88361210 100644 --- a/pydantic_schemaorg/AlignmentObject.py +++ b/pydantic_schemaorg/AlignmentObject.py @@ -18,7 +18,7 @@ class AlignmentObject(Intangible): See: https://schema.org/AlignmentObject Model depth: 3 """ - type_: str = Field(default="AlignmentObject", alias='@type', constant=True) + type_: str = Field(default="AlignmentObject", alias='@type', const=True) alignmentType: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A category of alignment between the learning resource and the framework node. Recommended" diff --git a/pydantic_schemaorg/AllWheelDriveConfiguration.py b/pydantic_schemaorg/AllWheelDriveConfiguration.py index 849d9eb0..64b13060 100644 --- a/pydantic_schemaorg/AllWheelDriveConfiguration.py +++ b/pydantic_schemaorg/AllWheelDriveConfiguration.py @@ -11,5 +11,5 @@ class AllWheelDriveConfiguration(DriveWheelConfigurationValue): See: https://schema.org/AllWheelDriveConfiguration Model depth: 6 """ - type_: str = Field(default="AllWheelDriveConfiguration", alias='@type', constant=True) + type_: str = Field(default="AllWheelDriveConfiguration", alias='@type', const=True) diff --git a/pydantic_schemaorg/AllergiesHealthAspect.py b/pydantic_schemaorg/AllergiesHealthAspect.py index b2b26902..62b5442e 100644 --- a/pydantic_schemaorg/AllergiesHealthAspect.py +++ b/pydantic_schemaorg/AllergiesHealthAspect.py @@ -11,5 +11,5 @@ class AllergiesHealthAspect(HealthAspectEnumeration): See: https://schema.org/AllergiesHealthAspect Model depth: 5 """ - type_: str = Field(default="AllergiesHealthAspect", alias='@type', constant=True) + type_: str = Field(default="AllergiesHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/AllocateAction.py b/pydantic_schemaorg/AllocateAction.py index a4761b7f..d58bb7de 100644 --- a/pydantic_schemaorg/AllocateAction.py +++ b/pydantic_schemaorg/AllocateAction.py @@ -11,5 +11,5 @@ class AllocateAction(OrganizeAction): See: https://schema.org/AllocateAction Model depth: 4 """ - type_: str = Field(default="AllocateAction", alias='@type', constant=True) + type_: str = Field(default="AllocateAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/AmpStory.py b/pydantic_schemaorg/AmpStory.py index 09934cdb..d0d0fc06 100644 --- a/pydantic_schemaorg/AmpStory.py +++ b/pydantic_schemaorg/AmpStory.py @@ -12,5 +12,5 @@ class AmpStory(CreativeWork): See: https://schema.org/AmpStory Model depth: 3 """ - type_: str = Field(default="AmpStory", alias='@type', constant=True) + type_: str = Field(default="AmpStory", alias='@type', const=True) diff --git a/pydantic_schemaorg/AmusementPark.py b/pydantic_schemaorg/AmusementPark.py index 443125f7..fb0fb4e7 100644 --- a/pydantic_schemaorg/AmusementPark.py +++ b/pydantic_schemaorg/AmusementPark.py @@ -11,5 +11,5 @@ class AmusementPark(EntertainmentBusiness): See: https://schema.org/AmusementPark Model depth: 5 """ - type_: str = Field(default="AmusementPark", alias='@type', constant=True) + type_: str = Field(default="AmusementPark", alias='@type', const=True) diff --git a/pydantic_schemaorg/AnaerobicActivity.py b/pydantic_schemaorg/AnaerobicActivity.py index c2463ad9..f918130d 100644 --- a/pydantic_schemaorg/AnaerobicActivity.py +++ b/pydantic_schemaorg/AnaerobicActivity.py @@ -12,5 +12,5 @@ class AnaerobicActivity(PhysicalActivityCategory): See: https://schema.org/AnaerobicActivity Model depth: 5 """ - type_: str = Field(default="AnaerobicActivity", alias='@type', constant=True) + type_: str = Field(default="AnaerobicActivity", alias='@type', const=True) diff --git a/pydantic_schemaorg/AnalysisNewsArticle.py b/pydantic_schemaorg/AnalysisNewsArticle.py index a8e52393..2298c974 100644 --- a/pydantic_schemaorg/AnalysisNewsArticle.py +++ b/pydantic_schemaorg/AnalysisNewsArticle.py @@ -13,5 +13,5 @@ class AnalysisNewsArticle(NewsArticle): See: https://schema.org/AnalysisNewsArticle Model depth: 5 """ - type_: str = Field(default="AnalysisNewsArticle", alias='@type', constant=True) + type_: str = Field(default="AnalysisNewsArticle", alias='@type', const=True) diff --git a/pydantic_schemaorg/AnatomicalStructure.py b/pydantic_schemaorg/AnatomicalStructure.py index 6972f1d7..fc36c691 100644 --- a/pydantic_schemaorg/AnatomicalStructure.py +++ b/pydantic_schemaorg/AnatomicalStructure.py @@ -15,7 +15,7 @@ class AnatomicalStructure(MedicalEntity): See: https://schema.org/AnatomicalStructure Model depth: 3 """ - type_: str = Field(default="AnatomicalStructure", alias='@type', constant=True) + type_: str = Field(default="AnatomicalStructure", alias='@type', const=True) diagram: Optional[Union[List[Union['ImageObject', str]], 'ImageObject', str]] = Field( default=None, description="An image containing a diagram that illustrates the structure and/or its component substructures" diff --git a/pydantic_schemaorg/AnatomicalSystem.py b/pydantic_schemaorg/AnatomicalSystem.py index baf31af3..d394a9b6 100644 --- a/pydantic_schemaorg/AnatomicalSystem.py +++ b/pydantic_schemaorg/AnatomicalSystem.py @@ -18,8 +18,8 @@ class AnatomicalSystem(MedicalEntity): See: https://schema.org/AnatomicalSystem Model depth: 3 """ - type_: str = Field(default="AnatomicalSystem", alias='@type', constant=True) - comprisedOf: Optional[Union[List[Union['AnatomicalStructure', 'AnatomicalSystem', str]], 'AnatomicalStructure', 'AnatomicalSystem', str]] = Field( + type_: str = Field(default="AnatomicalSystem", alias='@type', const=True) + comprisedOf: Optional[Union[List[Union['AnatomicalSystem', 'AnatomicalStructure', str]], 'AnatomicalSystem', 'AnatomicalStructure', str]] = Field( default=None, description="Specifying something physically contained by something else. Typically used here" "for the underlying anatomical structures, such as organs, that comprise the anatomical" diff --git a/pydantic_schemaorg/Anesthesia.py b/pydantic_schemaorg/Anesthesia.py index 5b79e2e1..cc47a076 100644 --- a/pydantic_schemaorg/Anesthesia.py +++ b/pydantic_schemaorg/Anesthesia.py @@ -12,5 +12,5 @@ class Anesthesia(MedicalSpecialty): See: https://schema.org/Anesthesia Model depth: 6 """ - type_: str = Field(default="Anesthesia", alias='@type', constant=True) + type_: str = Field(default="Anesthesia", alias='@type', const=True) diff --git a/pydantic_schemaorg/AnimalShelter.py b/pydantic_schemaorg/AnimalShelter.py index 3086c70d..22c0ee1e 100644 --- a/pydantic_schemaorg/AnimalShelter.py +++ b/pydantic_schemaorg/AnimalShelter.py @@ -11,5 +11,5 @@ class AnimalShelter(LocalBusiness): See: https://schema.org/AnimalShelter Model depth: 4 """ - type_: str = Field(default="AnimalShelter", alias='@type', constant=True) + type_: str = Field(default="AnimalShelter", alias='@type', const=True) diff --git a/pydantic_schemaorg/Answer.py b/pydantic_schemaorg/Answer.py index 55c19a6f..80764a00 100644 --- a/pydantic_schemaorg/Answer.py +++ b/pydantic_schemaorg/Answer.py @@ -14,8 +14,8 @@ class Answer(Comment): See: https://schema.org/Answer Model depth: 4 """ - type_: str = Field(default="Answer", alias='@type', constant=True) - answerExplanation: Optional[Union[List[Union['WebContent', 'Comment', str]], 'WebContent', 'Comment', str]] = Field( + type_: str = Field(default="Answer", alias='@type', const=True) + answerExplanation: Optional[Union[List[Union['Comment', 'WebContent', str]], 'Comment', 'WebContent', str]] = Field( default=None, description="A step-by-step or full explanation about Answer. Can outline how this Answer was achieved" "or contain more broad clarification or statement about it.", @@ -23,5 +23,5 @@ class Answer(Comment): if TYPE_CHECKING: - from pydantic_schemaorg.WebContent import WebContent from pydantic_schemaorg.Comment import Comment + from pydantic_schemaorg.WebContent import WebContent diff --git a/pydantic_schemaorg/Apartment.py b/pydantic_schemaorg/Apartment.py index 115969d5..dd291852 100644 --- a/pydantic_schemaorg/Apartment.py +++ b/pydantic_schemaorg/Apartment.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -17,8 +17,8 @@ class Apartment(Accommodation): See: https://schema.org/Apartment Model depth: 4 """ - type_: str = Field(default="Apartment", alias='@type', constant=True) - numberOfRooms: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + type_: str = Field(default="Apartment", alias='@type', const=True) + numberOfRooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The number of rooms (excluding bathrooms and closets) of the accommodation or lodging" "business. Typical unit code(s): ROM for room or C62 for no unit. The type of room can be" diff --git a/pydantic_schemaorg/ApartmentComplex.py b/pydantic_schemaorg/ApartmentComplex.py index 0fecf08c..65fb8d1b 100644 --- a/pydantic_schemaorg/ApartmentComplex.py +++ b/pydantic_schemaorg/ApartmentComplex.py @@ -1,9 +1,8 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import AnyUrl, StrictBool, StrictInt, StrictFloat from typing import List, Optional, Union -from pydantic import AnyUrl, StrictBool from pydantic import Field @@ -16,8 +15,8 @@ class ApartmentComplex(Residence): See: https://schema.org/ApartmentComplex Model depth: 4 """ - type_: str = Field(default="ApartmentComplex", alias='@type', constant=True) - numberOfBedrooms: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + type_: str = Field(default="ApartmentComplex", alias='@type', const=True) + numberOfBedrooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]]" "or [[FloorPlan]].", diff --git a/pydantic_schemaorg/Appearance.py b/pydantic_schemaorg/Appearance.py index 543223e3..5c0deb86 100644 --- a/pydantic_schemaorg/Appearance.py +++ b/pydantic_schemaorg/Appearance.py @@ -11,5 +11,5 @@ class Appearance(PhysicalExam): See: https://schema.org/Appearance Model depth: 5 """ - type_: str = Field(default="Appearance", alias='@type', constant=True) + type_: str = Field(default="Appearance", alias='@type', const=True) diff --git a/pydantic_schemaorg/AppendAction.py b/pydantic_schemaorg/AppendAction.py index e251cfef..7957889e 100644 --- a/pydantic_schemaorg/AppendAction.py +++ b/pydantic_schemaorg/AppendAction.py @@ -11,5 +11,5 @@ class AppendAction(InsertAction): See: https://schema.org/AppendAction Model depth: 6 """ - type_: str = Field(default="AppendAction", alias='@type', constant=True) + type_: str = Field(default="AppendAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/ApplyAction.py b/pydantic_schemaorg/ApplyAction.py index 5ac6a6ea..d1cd233a 100644 --- a/pydantic_schemaorg/ApplyAction.py +++ b/pydantic_schemaorg/ApplyAction.py @@ -13,5 +13,5 @@ class ApplyAction(OrganizeAction): See: https://schema.org/ApplyAction Model depth: 4 """ - type_: str = Field(default="ApplyAction", alias='@type', constant=True) + type_: str = Field(default="ApplyAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/ApprovedIndication.py b/pydantic_schemaorg/ApprovedIndication.py index 3926dd19..021425b4 100644 --- a/pydantic_schemaorg/ApprovedIndication.py +++ b/pydantic_schemaorg/ApprovedIndication.py @@ -13,5 +13,5 @@ class ApprovedIndication(MedicalIndication): See: https://schema.org/ApprovedIndication Model depth: 4 """ - type_: str = Field(default="ApprovedIndication", alias='@type', constant=True) + type_: str = Field(default="ApprovedIndication", alias='@type', const=True) diff --git a/pydantic_schemaorg/Aquarium.py b/pydantic_schemaorg/Aquarium.py index dbd150b7..846df720 100644 --- a/pydantic_schemaorg/Aquarium.py +++ b/pydantic_schemaorg/Aquarium.py @@ -11,5 +11,5 @@ class Aquarium(CivicStructure): See: https://schema.org/Aquarium Model depth: 4 """ - type_: str = Field(default="Aquarium", alias='@type', constant=True) + type_: str = Field(default="Aquarium", alias='@type', const=True) diff --git a/pydantic_schemaorg/ArchiveComponent.py b/pydantic_schemaorg/ArchiveComponent.py index f5bc6d28..4791a9f0 100644 --- a/pydantic_schemaorg/ArchiveComponent.py +++ b/pydantic_schemaorg/ArchiveComponent.py @@ -15,8 +15,8 @@ class ArchiveComponent(CreativeWork): See: https://schema.org/ArchiveComponent Model depth: 3 """ - type_: str = Field(default="ArchiveComponent", alias='@type', constant=True) - itemLocation: Optional[Union[List[Union[str, 'Text', 'Place', 'PostalAddress']], str, 'Text', 'Place', 'PostalAddress']] = Field( + type_: str = Field(default="ArchiveComponent", alias='@type', const=True) + itemLocation: Optional[Union[List[Union[str, 'Text', 'PostalAddress', 'Place']], str, 'Text', 'PostalAddress', 'Place']] = Field( default=None, description="Current location of the item.", ) @@ -28,6 +28,6 @@ class ArchiveComponent(CreativeWork): if TYPE_CHECKING: from pydantic_schemaorg.Text import Text - from pydantic_schemaorg.Place import Place from pydantic_schemaorg.PostalAddress import PostalAddress + from pydantic_schemaorg.Place import Place from pydantic_schemaorg.ArchiveOrganization import ArchiveOrganization diff --git a/pydantic_schemaorg/ArchiveOrganization.py b/pydantic_schemaorg/ArchiveOrganization.py index a5e77cab..d62b6ae4 100644 --- a/pydantic_schemaorg/ArchiveOrganization.py +++ b/pydantic_schemaorg/ArchiveOrganization.py @@ -15,7 +15,7 @@ class ArchiveOrganization(LocalBusiness): See: https://schema.org/ArchiveOrganization Model depth: 4 """ - type_: str = Field(default="ArchiveOrganization", alias='@type', constant=True) + type_: str = Field(default="ArchiveOrganization", alias='@type', const=True) archiveHeld: Optional[Union[List[Union['ArchiveComponent', str]], 'ArchiveComponent', str]] = Field( default=None, description="Collection, [fonds](https://en.wikipedia.org/wiki/Fonds), or item held, kept" diff --git a/pydantic_schemaorg/ArriveAction.py b/pydantic_schemaorg/ArriveAction.py index 577b26e5..ddadb32e 100644 --- a/pydantic_schemaorg/ArriveAction.py +++ b/pydantic_schemaorg/ArriveAction.py @@ -12,5 +12,5 @@ class ArriveAction(MoveAction): See: https://schema.org/ArriveAction Model depth: 4 """ - type_: str = Field(default="ArriveAction", alias='@type', constant=True) + type_: str = Field(default="ArriveAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/ArtGallery.py b/pydantic_schemaorg/ArtGallery.py index 98bbbcd2..35508947 100644 --- a/pydantic_schemaorg/ArtGallery.py +++ b/pydantic_schemaorg/ArtGallery.py @@ -11,5 +11,5 @@ class ArtGallery(EntertainmentBusiness): See: https://schema.org/ArtGallery Model depth: 5 """ - type_: str = Field(default="ArtGallery", alias='@type', constant=True) + type_: str = Field(default="ArtGallery", alias='@type', const=True) diff --git a/pydantic_schemaorg/Artery.py b/pydantic_schemaorg/Artery.py index af132253..7df23b8b 100644 --- a/pydantic_schemaorg/Artery.py +++ b/pydantic_schemaorg/Artery.py @@ -14,7 +14,7 @@ class Artery(Vessel): See: https://schema.org/Artery Model depth: 5 """ - type_: str = Field(default="Artery", alias='@type', constant=True) + type_: str = Field(default="Artery", alias='@type', const=True) supplyTo: Optional[Union[List[Union['AnatomicalStructure', str]], 'AnatomicalStructure', str]] = Field( default=None, description="The area to which the artery supplies blood.", diff --git a/pydantic_schemaorg/Article.py b/pydantic_schemaorg/Article.py index b98c2729..7ae62997 100644 --- a/pydantic_schemaorg/Article.py +++ b/pydantic_schemaorg/Article.py @@ -17,7 +17,7 @@ class Article(CreativeWork): See: https://schema.org/Article Model depth: 3 """ - type_: str = Field(default="Article", alias='@type', constant=True) + type_: str = Field(default="Article", alias='@type', const=True) backstory: Optional[Union[List[Union[str, 'Text', 'CreativeWork']], str, 'Text', 'CreativeWork']] = Field( default=None, description="For an [[Article]], typically a [[NewsArticle]], the backstory property provides" diff --git a/pydantic_schemaorg/AskAction.py b/pydantic_schemaorg/AskAction.py index 2fdf368a..cb74b626 100644 --- a/pydantic_schemaorg/AskAction.py +++ b/pydantic_schemaorg/AskAction.py @@ -15,7 +15,7 @@ class AskAction(CommunicateAction): See: https://schema.org/AskAction Model depth: 5 """ - type_: str = Field(default="AskAction", alias='@type', constant=True) + type_: str = Field(default="AskAction", alias='@type', const=True) question: Optional[Union[List[Union['Question', str]], 'Question', str]] = Field( default=None, description="A sub property of object. A question.", diff --git a/pydantic_schemaorg/AskPublicNewsArticle.py b/pydantic_schemaorg/AskPublicNewsArticle.py index cfb4321c..512e1209 100644 --- a/pydantic_schemaorg/AskPublicNewsArticle.py +++ b/pydantic_schemaorg/AskPublicNewsArticle.py @@ -13,5 +13,5 @@ class AskPublicNewsArticle(NewsArticle): See: https://schema.org/AskPublicNewsArticle Model depth: 5 """ - type_: str = Field(default="AskPublicNewsArticle", alias='@type', constant=True) + type_: str = Field(default="AskPublicNewsArticle", alias='@type', const=True) diff --git a/pydantic_schemaorg/AssessAction.py b/pydantic_schemaorg/AssessAction.py index 0741f767..8c2111fa 100644 --- a/pydantic_schemaorg/AssessAction.py +++ b/pydantic_schemaorg/AssessAction.py @@ -11,5 +11,5 @@ class AssessAction(Action): See: https://schema.org/AssessAction Model depth: 3 """ - type_: str = Field(default="AssessAction", alias='@type', constant=True) + type_: str = Field(default="AssessAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/AssignAction.py b/pydantic_schemaorg/AssignAction.py index d433289a..da649a0b 100644 --- a/pydantic_schemaorg/AssignAction.py +++ b/pydantic_schemaorg/AssignAction.py @@ -11,5 +11,5 @@ class AssignAction(AllocateAction): See: https://schema.org/AssignAction Model depth: 5 """ - type_: str = Field(default="AssignAction", alias='@type', constant=True) + type_: str = Field(default="AssignAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Atlas.py b/pydantic_schemaorg/Atlas.py index 37818661..238d4ff2 100644 --- a/pydantic_schemaorg/Atlas.py +++ b/pydantic_schemaorg/Atlas.py @@ -12,5 +12,5 @@ class Atlas(CreativeWork): See: https://schema.org/Atlas Model depth: 3 """ - type_: str = Field(default="Atlas", alias='@type', constant=True) + type_: str = Field(default="Atlas", alias='@type', const=True) diff --git a/pydantic_schemaorg/Attorney.py b/pydantic_schemaorg/Attorney.py index 75934877..208e4b28 100644 --- a/pydantic_schemaorg/Attorney.py +++ b/pydantic_schemaorg/Attorney.py @@ -12,5 +12,5 @@ class Attorney(LegalService): See: https://schema.org/Attorney Model depth: 5 """ - type_: str = Field(default="Attorney", alias='@type', constant=True) + type_: str = Field(default="Attorney", alias='@type', const=True) diff --git a/pydantic_schemaorg/Audience.py b/pydantic_schemaorg/Audience.py index 197508f6..6be58d6c 100644 --- a/pydantic_schemaorg/Audience.py +++ b/pydantic_schemaorg/Audience.py @@ -14,7 +14,7 @@ class Audience(Intangible): See: https://schema.org/Audience Model depth: 3 """ - type_: str = Field(default="Audience", alias='@type', constant=True) + type_: str = Field(default="Audience", alias='@type', const=True) audienceType: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The target group associated with a given audience (e.g. veterans, car owners, musicians," diff --git a/pydantic_schemaorg/AudioObject.py b/pydantic_schemaorg/AudioObject.py index 7b958712..73846002 100644 --- a/pydantic_schemaorg/AudioObject.py +++ b/pydantic_schemaorg/AudioObject.py @@ -14,7 +14,7 @@ class AudioObject(MediaObject): See: https://schema.org/AudioObject Model depth: 4 """ - type_: str = Field(default="AudioObject", alias='@type', constant=True) + type_: str = Field(default="AudioObject", alias='@type', const=True) embeddedTextCaption: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Represents textual captioning from a [[MediaObject]], e.g. text of a 'meme'.", diff --git a/pydantic_schemaorg/AudioObjectSnapshot.py b/pydantic_schemaorg/AudioObjectSnapshot.py index 56c2856a..a41aaef2 100644 --- a/pydantic_schemaorg/AudioObjectSnapshot.py +++ b/pydantic_schemaorg/AudioObjectSnapshot.py @@ -15,5 +15,5 @@ class AudioObjectSnapshot(AudioObject): See: https://schema.org/AudioObjectSnapshot Model depth: 5 """ - type_: str = Field(default="AudioObjectSnapshot", alias='@type', constant=True) + type_: str = Field(default="AudioObjectSnapshot", alias='@type', const=True) diff --git a/pydantic_schemaorg/Audiobook.py b/pydantic_schemaorg/Audiobook.py index 3fc19659..3fb3a754 100644 --- a/pydantic_schemaorg/Audiobook.py +++ b/pydantic_schemaorg/Audiobook.py @@ -15,7 +15,7 @@ class Audiobook(AudioObject, Book): See: https://schema.org/Audiobook Model depth: 4 """ - type_: str = Field(default="Audiobook", alias='@type', constant=True) + type_: str = Field(default="Audiobook", alias='@type', const=True) duration: Optional[Union[List[Union['Duration', str]], 'Duration', str]] = Field( default=None, description="The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).", diff --git a/pydantic_schemaorg/AudiobookFormat.py b/pydantic_schemaorg/AudiobookFormat.py index c4382c85..eb804b6e 100644 --- a/pydantic_schemaorg/AudiobookFormat.py +++ b/pydantic_schemaorg/AudiobookFormat.py @@ -13,5 +13,5 @@ class AudiobookFormat(BookFormatType): See: https://schema.org/AudiobookFormat Model depth: 5 """ - type_: str = Field(default="AudiobookFormat", alias='@type', constant=True) + type_: str = Field(default="AudiobookFormat", alias='@type', const=True) diff --git a/pydantic_schemaorg/AuthoritativeLegalValue.py b/pydantic_schemaorg/AuthoritativeLegalValue.py index 92993c17..80e1ffec 100644 --- a/pydantic_schemaorg/AuthoritativeLegalValue.py +++ b/pydantic_schemaorg/AuthoritativeLegalValue.py @@ -14,5 +14,5 @@ class AuthoritativeLegalValue(LegalValueLevel): See: https://schema.org/AuthoritativeLegalValue Model depth: 5 """ - type_: str = Field(default="AuthoritativeLegalValue", alias='@type', constant=True) + type_: str = Field(default="AuthoritativeLegalValue", alias='@type', const=True) diff --git a/pydantic_schemaorg/AuthorizeAction.py b/pydantic_schemaorg/AuthorizeAction.py index 77f03767..5ce433e7 100644 --- a/pydantic_schemaorg/AuthorizeAction.py +++ b/pydantic_schemaorg/AuthorizeAction.py @@ -14,15 +14,15 @@ class AuthorizeAction(AllocateAction): See: https://schema.org/AuthorizeAction Model depth: 5 """ - type_: str = Field(default="AuthorizeAction", alias='@type', constant=True) - recipient: Optional[Union[List[Union['Organization', 'Person', 'ContactPoint', 'Audience', str]], 'Organization', 'Person', 'ContactPoint', 'Audience', str]] = Field( + type_: str = Field(default="AuthorizeAction", alias='@type', const=True) + recipient: Optional[Union[List[Union['ContactPoint', 'Audience', 'Organization', 'Person', str]], 'ContactPoint', 'Audience', 'Organization', 'Person', str]] = Field( default=None, description="A sub property of participant. The participant who is at the receiving end of the action.", ) if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization - from pydantic_schemaorg.Person import Person from pydantic_schemaorg.ContactPoint import ContactPoint from pydantic_schemaorg.Audience import Audience + from pydantic_schemaorg.Organization import Organization + from pydantic_schemaorg.Person import Person diff --git a/pydantic_schemaorg/AutoBodyShop.py b/pydantic_schemaorg/AutoBodyShop.py index ee21bc74..38d76e48 100644 --- a/pydantic_schemaorg/AutoBodyShop.py +++ b/pydantic_schemaorg/AutoBodyShop.py @@ -11,5 +11,5 @@ class AutoBodyShop(AutomotiveBusiness): See: https://schema.org/AutoBodyShop Model depth: 5 """ - type_: str = Field(default="AutoBodyShop", alias='@type', constant=True) + type_: str = Field(default="AutoBodyShop", alias='@type', const=True) diff --git a/pydantic_schemaorg/AutoDealer.py b/pydantic_schemaorg/AutoDealer.py index c7b9398b..b1ce21da 100644 --- a/pydantic_schemaorg/AutoDealer.py +++ b/pydantic_schemaorg/AutoDealer.py @@ -11,5 +11,5 @@ class AutoDealer(AutomotiveBusiness): See: https://schema.org/AutoDealer Model depth: 5 """ - type_: str = Field(default="AutoDealer", alias='@type', constant=True) + type_: str = Field(default="AutoDealer", alias='@type', const=True) diff --git a/pydantic_schemaorg/AutoPartsStore.py b/pydantic_schemaorg/AutoPartsStore.py index 434c959c..f772ece8 100644 --- a/pydantic_schemaorg/AutoPartsStore.py +++ b/pydantic_schemaorg/AutoPartsStore.py @@ -2,15 +2,15 @@ from pydantic import Field -from pydantic_schemaorg.AutomotiveBusiness import AutomotiveBusiness from pydantic_schemaorg.Store import Store +from pydantic_schemaorg.AutomotiveBusiness import AutomotiveBusiness -class AutoPartsStore(AutomotiveBusiness, Store): +class AutoPartsStore(Store, AutomotiveBusiness): """An auto parts store. See: https://schema.org/AutoPartsStore Model depth: 5 """ - type_: str = Field(default="AutoPartsStore", alias='@type', constant=True) + type_: str = Field(default="AutoPartsStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/AutoRental.py b/pydantic_schemaorg/AutoRental.py index bf2e3355..fd970079 100644 --- a/pydantic_schemaorg/AutoRental.py +++ b/pydantic_schemaorg/AutoRental.py @@ -11,5 +11,5 @@ class AutoRental(AutomotiveBusiness): See: https://schema.org/AutoRental Model depth: 5 """ - type_: str = Field(default="AutoRental", alias='@type', constant=True) + type_: str = Field(default="AutoRental", alias='@type', const=True) diff --git a/pydantic_schemaorg/AutoRepair.py b/pydantic_schemaorg/AutoRepair.py index a1ae8e86..d07989ed 100644 --- a/pydantic_schemaorg/AutoRepair.py +++ b/pydantic_schemaorg/AutoRepair.py @@ -11,5 +11,5 @@ class AutoRepair(AutomotiveBusiness): See: https://schema.org/AutoRepair Model depth: 5 """ - type_: str = Field(default="AutoRepair", alias='@type', constant=True) + type_: str = Field(default="AutoRepair", alias='@type', const=True) diff --git a/pydantic_schemaorg/AutoWash.py b/pydantic_schemaorg/AutoWash.py index 7c954208..122630de 100644 --- a/pydantic_schemaorg/AutoWash.py +++ b/pydantic_schemaorg/AutoWash.py @@ -11,5 +11,5 @@ class AutoWash(AutomotiveBusiness): See: https://schema.org/AutoWash Model depth: 5 """ - type_: str = Field(default="AutoWash", alias='@type', constant=True) + type_: str = Field(default="AutoWash", alias='@type', const=True) diff --git a/pydantic_schemaorg/AutomatedTeller.py b/pydantic_schemaorg/AutomatedTeller.py index 17a2728e..82ad3a13 100644 --- a/pydantic_schemaorg/AutomatedTeller.py +++ b/pydantic_schemaorg/AutomatedTeller.py @@ -11,5 +11,5 @@ class AutomatedTeller(FinancialService): See: https://schema.org/AutomatedTeller Model depth: 5 """ - type_: str = Field(default="AutomatedTeller", alias='@type', constant=True) + type_: str = Field(default="AutomatedTeller", alias='@type', const=True) diff --git a/pydantic_schemaorg/AutomotiveBusiness.py b/pydantic_schemaorg/AutomotiveBusiness.py index 17ee245f..c1483b39 100644 --- a/pydantic_schemaorg/AutomotiveBusiness.py +++ b/pydantic_schemaorg/AutomotiveBusiness.py @@ -11,5 +11,5 @@ class AutomotiveBusiness(LocalBusiness): See: https://schema.org/AutomotiveBusiness Model depth: 4 """ - type_: str = Field(default="AutomotiveBusiness", alias='@type', constant=True) + type_: str = Field(default="AutomotiveBusiness", alias='@type', const=True) diff --git a/pydantic_schemaorg/Ayurvedic.py b/pydantic_schemaorg/Ayurvedic.py index 590957d6..fb27a409 100644 --- a/pydantic_schemaorg/Ayurvedic.py +++ b/pydantic_schemaorg/Ayurvedic.py @@ -12,5 +12,5 @@ class Ayurvedic(MedicineSystem): See: https://schema.org/Ayurvedic Model depth: 6 """ - type_: str = Field(default="Ayurvedic", alias='@type', constant=True) + type_: str = Field(default="Ayurvedic", alias='@type', const=True) diff --git a/pydantic_schemaorg/BackOrder.py b/pydantic_schemaorg/BackOrder.py index c2a9f540..9203e222 100644 --- a/pydantic_schemaorg/BackOrder.py +++ b/pydantic_schemaorg/BackOrder.py @@ -11,5 +11,5 @@ class BackOrder(ItemAvailability): See: https://schema.org/BackOrder Model depth: 5 """ - type_: str = Field(default="BackOrder", alias='@type', constant=True) + type_: str = Field(default="BackOrder", alias='@type', const=True) diff --git a/pydantic_schemaorg/BackgroundNewsArticle.py b/pydantic_schemaorg/BackgroundNewsArticle.py index 8bf977a6..e6691376 100644 --- a/pydantic_schemaorg/BackgroundNewsArticle.py +++ b/pydantic_schemaorg/BackgroundNewsArticle.py @@ -17,5 +17,5 @@ class BackgroundNewsArticle(NewsArticle): See: https://schema.org/BackgroundNewsArticle Model depth: 5 """ - type_: str = Field(default="BackgroundNewsArticle", alias='@type', constant=True) + type_: str = Field(default="BackgroundNewsArticle", alias='@type', const=True) diff --git a/pydantic_schemaorg/Bacteria.py b/pydantic_schemaorg/Bacteria.py index 7a416b57..57182f3d 100644 --- a/pydantic_schemaorg/Bacteria.py +++ b/pydantic_schemaorg/Bacteria.py @@ -11,5 +11,5 @@ class Bacteria(InfectiousAgentClass): See: https://schema.org/Bacteria Model depth: 6 """ - type_: str = Field(default="Bacteria", alias='@type', constant=True) + type_: str = Field(default="Bacteria", alias='@type', const=True) diff --git a/pydantic_schemaorg/Bakery.py b/pydantic_schemaorg/Bakery.py index f7722173..5dbd1506 100644 --- a/pydantic_schemaorg/Bakery.py +++ b/pydantic_schemaorg/Bakery.py @@ -11,5 +11,5 @@ class Bakery(FoodEstablishment): See: https://schema.org/Bakery Model depth: 5 """ - type_: str = Field(default="Bakery", alias='@type', constant=True) + type_: str = Field(default="Bakery", alias='@type', const=True) diff --git a/pydantic_schemaorg/Balance.py b/pydantic_schemaorg/Balance.py index b8331224..74dd2b31 100644 --- a/pydantic_schemaorg/Balance.py +++ b/pydantic_schemaorg/Balance.py @@ -11,5 +11,5 @@ class Balance(PhysicalActivityCategory): See: https://schema.org/Balance Model depth: 5 """ - type_: str = Field(default="Balance", alias='@type', constant=True) + type_: str = Field(default="Balance", alias='@type', const=True) diff --git a/pydantic_schemaorg/BankAccount.py b/pydantic_schemaorg/BankAccount.py index fec994b7..c5794ed5 100644 --- a/pydantic_schemaorg/BankAccount.py +++ b/pydantic_schemaorg/BankAccount.py @@ -16,7 +16,7 @@ class BankAccount(FinancialProduct): See: https://schema.org/BankAccount Model depth: 5 """ - type_: str = Field(default="BankAccount", alias='@type', constant=True) + type_: str = Field(default="BankAccount", alias='@type', const=True) accountMinimumInflow: Optional[Union[List[Union['MonetaryAmount', str]], 'MonetaryAmount', str]] = Field( default=None, description="A minimum amount that has to be paid in every month.", diff --git a/pydantic_schemaorg/BankOrCreditUnion.py b/pydantic_schemaorg/BankOrCreditUnion.py index a40fb8a3..ee11d83b 100644 --- a/pydantic_schemaorg/BankOrCreditUnion.py +++ b/pydantic_schemaorg/BankOrCreditUnion.py @@ -11,5 +11,5 @@ class BankOrCreditUnion(FinancialService): See: https://schema.org/BankOrCreditUnion Model depth: 5 """ - type_: str = Field(default="BankOrCreditUnion", alias='@type', constant=True) + type_: str = Field(default="BankOrCreditUnion", alias='@type', const=True) diff --git a/pydantic_schemaorg/BarOrPub.py b/pydantic_schemaorg/BarOrPub.py index 454fc854..c20f480c 100644 --- a/pydantic_schemaorg/BarOrPub.py +++ b/pydantic_schemaorg/BarOrPub.py @@ -11,5 +11,5 @@ class BarOrPub(FoodEstablishment): See: https://schema.org/BarOrPub Model depth: 5 """ - type_: str = Field(default="BarOrPub", alias='@type', constant=True) + type_: str = Field(default="BarOrPub", alias='@type', const=True) diff --git a/pydantic_schemaorg/Barcode.py b/pydantic_schemaorg/Barcode.py index 92a9e36e..469a2640 100644 --- a/pydantic_schemaorg/Barcode.py +++ b/pydantic_schemaorg/Barcode.py @@ -11,5 +11,5 @@ class Barcode(ImageObject): See: https://schema.org/Barcode Model depth: 5 """ - type_: str = Field(default="Barcode", alias='@type', constant=True) + type_: str = Field(default="Barcode", alias='@type', const=True) diff --git a/pydantic_schemaorg/BasicIncome.py b/pydantic_schemaorg/BasicIncome.py index 71172aa8..2e615e28 100644 --- a/pydantic_schemaorg/BasicIncome.py +++ b/pydantic_schemaorg/BasicIncome.py @@ -11,5 +11,5 @@ class BasicIncome(GovernmentBenefitsType): See: https://schema.org/BasicIncome Model depth: 5 """ - type_: str = Field(default="BasicIncome", alias='@type', constant=True) + type_: str = Field(default="BasicIncome", alias='@type', const=True) diff --git a/pydantic_schemaorg/Beach.py b/pydantic_schemaorg/Beach.py index b94a9ccb..e2245f81 100644 --- a/pydantic_schemaorg/Beach.py +++ b/pydantic_schemaorg/Beach.py @@ -11,5 +11,5 @@ class Beach(CivicStructure): See: https://schema.org/Beach Model depth: 4 """ - type_: str = Field(default="Beach", alias='@type', constant=True) + type_: str = Field(default="Beach", alias='@type', const=True) diff --git a/pydantic_schemaorg/BeautySalon.py b/pydantic_schemaorg/BeautySalon.py index c162f4e3..9a211be5 100644 --- a/pydantic_schemaorg/BeautySalon.py +++ b/pydantic_schemaorg/BeautySalon.py @@ -11,5 +11,5 @@ class BeautySalon(HealthAndBeautyBusiness): See: https://schema.org/BeautySalon Model depth: 5 """ - type_: str = Field(default="BeautySalon", alias='@type', constant=True) + type_: str = Field(default="BeautySalon", alias='@type', const=True) diff --git a/pydantic_schemaorg/BedAndBreakfast.py b/pydantic_schemaorg/BedAndBreakfast.py index 1540d525..062c8559 100644 --- a/pydantic_schemaorg/BedAndBreakfast.py +++ b/pydantic_schemaorg/BedAndBreakfast.py @@ -12,5 +12,5 @@ class BedAndBreakfast(LodgingBusiness): See: https://schema.org/BedAndBreakfast Model depth: 5 """ - type_: str = Field(default="BedAndBreakfast", alias='@type', constant=True) + type_: str = Field(default="BedAndBreakfast", alias='@type', const=True) diff --git a/pydantic_schemaorg/BedDetails.py b/pydantic_schemaorg/BedDetails.py index a100d437..653c5880 100644 --- a/pydantic_schemaorg/BedDetails.py +++ b/pydantic_schemaorg/BedDetails.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -17,8 +17,8 @@ class BedDetails(Intangible): See: https://schema.org/BedDetails Model depth: 3 """ - type_: str = Field(default="BedDetails", alias='@type', constant=True) - numberOfBeds: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + type_: str = Field(default="BedDetails", alias='@type', const=True) + numberOfBeds: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The quantity of the given bed type available in the HotelRoom, Suite, House, or Apartment.", ) diff --git a/pydantic_schemaorg/BedType.py b/pydantic_schemaorg/BedType.py index fb716733..1fd262ae 100644 --- a/pydantic_schemaorg/BedType.py +++ b/pydantic_schemaorg/BedType.py @@ -11,5 +11,5 @@ class BedType(QualitativeValue): See: https://schema.org/BedType Model depth: 5 """ - type_: str = Field(default="BedType", alias='@type', constant=True) + type_: str = Field(default="BedType", alias='@type', const=True) diff --git a/pydantic_schemaorg/BefriendAction.py b/pydantic_schemaorg/BefriendAction.py index 3dff163d..9226c0ae 100644 --- a/pydantic_schemaorg/BefriendAction.py +++ b/pydantic_schemaorg/BefriendAction.py @@ -13,5 +13,5 @@ class BefriendAction(InteractAction): See: https://schema.org/BefriendAction Model depth: 4 """ - type_: str = Field(default="BefriendAction", alias='@type', constant=True) + type_: str = Field(default="BefriendAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/BenefitsHealthAspect.py b/pydantic_schemaorg/BenefitsHealthAspect.py index 8baf7215..7f0bbe7e 100644 --- a/pydantic_schemaorg/BenefitsHealthAspect.py +++ b/pydantic_schemaorg/BenefitsHealthAspect.py @@ -11,5 +11,5 @@ class BenefitsHealthAspect(HealthAspectEnumeration): See: https://schema.org/BenefitsHealthAspect Model depth: 5 """ - type_: str = Field(default="BenefitsHealthAspect", alias='@type', constant=True) + type_: str = Field(default="BenefitsHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/BikeStore.py b/pydantic_schemaorg/BikeStore.py index b0432c6d..20164c64 100644 --- a/pydantic_schemaorg/BikeStore.py +++ b/pydantic_schemaorg/BikeStore.py @@ -11,5 +11,5 @@ class BikeStore(Store): See: https://schema.org/BikeStore Model depth: 5 """ - type_: str = Field(default="BikeStore", alias='@type', constant=True) + type_: str = Field(default="BikeStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/BioChemEntity.py b/pydantic_schemaorg/BioChemEntity.py index 6df14add..8f285dd7 100644 --- a/pydantic_schemaorg/BioChemEntity.py +++ b/pydantic_schemaorg/BioChemEntity.py @@ -16,7 +16,7 @@ class BioChemEntity(Thing): See: https://schema.org/BioChemEntity Model depth: 2 """ - type_: str = Field(default="BioChemEntity", alias='@type', constant=True) + type_: str = Field(default="BioChemEntity", alias='@type', const=True) bioChemSimilarity: Optional[Union[List[Union['BioChemEntity', str]], 'BioChemEntity', str]] = Field( default=None, description="A similar BioChemEntity, e.g., obtained by fingerprint similarity algorithms.", @@ -39,12 +39,12 @@ class BioChemEntity(Thing): default=None, description="Indicates a BioChemEntity that (in some sense) has this BioChemEntity as a part.", ) - associatedDisease: Optional[Union[List[Union[AnyUrl, 'URL', 'MedicalCondition', 'PropertyValue', str]], AnyUrl, 'URL', 'MedicalCondition', 'PropertyValue', str]] = Field( + associatedDisease: Optional[Union[List[Union[AnyUrl, 'URL', 'PropertyValue', 'MedicalCondition', str]], AnyUrl, 'URL', 'PropertyValue', 'MedicalCondition', str]] = Field( default=None, description="Disease associated to this BioChemEntity. Such disease can be a MedicalCondition or" "a URL. If you want to add an evidence supporting the association, please use PropertyValue.", ) - taxonomicRange: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'Taxon', 'DefinedTerm']], AnyUrl, 'URL', str, 'Text', 'Taxon', 'DefinedTerm']] = Field( + taxonomicRange: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'DefinedTerm', 'Taxon']], AnyUrl, 'URL', str, 'Text', 'DefinedTerm', 'Taxon']] = Field( default=None, description="The taxonomic grouping of the organism that expresses, encodes, or in someway related" "to the BioChemEntity.", diff --git a/pydantic_schemaorg/Blog.py b/pydantic_schemaorg/Blog.py index e44134b4..8a598a41 100644 --- a/pydantic_schemaorg/Blog.py +++ b/pydantic_schemaorg/Blog.py @@ -16,7 +16,7 @@ class Blog(CreativeWork): See: https://schema.org/Blog Model depth: 3 """ - type_: str = Field(default="Blog", alias='@type', constant=True) + type_: str = Field(default="Blog", alias='@type', const=True) blogPosts: Optional[Union[List[Union['BlogPosting', str]], 'BlogPosting', str]] = Field( default=None, description="Indicates a post that is part of a [[Blog]]. Note that historically, what we term a \"Blog\"" diff --git a/pydantic_schemaorg/BlogPosting.py b/pydantic_schemaorg/BlogPosting.py index cf3a5bca..4630f1f8 100644 --- a/pydantic_schemaorg/BlogPosting.py +++ b/pydantic_schemaorg/BlogPosting.py @@ -11,5 +11,5 @@ class BlogPosting(SocialMediaPosting): See: https://schema.org/BlogPosting Model depth: 5 """ - type_: str = Field(default="BlogPosting", alias='@type', constant=True) + type_: str = Field(default="BlogPosting", alias='@type', const=True) diff --git a/pydantic_schemaorg/BloodTest.py b/pydantic_schemaorg/BloodTest.py index 5bd36723..f3328d23 100644 --- a/pydantic_schemaorg/BloodTest.py +++ b/pydantic_schemaorg/BloodTest.py @@ -11,5 +11,5 @@ class BloodTest(MedicalTest): See: https://schema.org/BloodTest Model depth: 4 """ - type_: str = Field(default="BloodTest", alias='@type', constant=True) + type_: str = Field(default="BloodTest", alias='@type', const=True) diff --git a/pydantic_schemaorg/BoardingPolicyType.py b/pydantic_schemaorg/BoardingPolicyType.py index 0ab6e139..1b06cb7a 100644 --- a/pydantic_schemaorg/BoardingPolicyType.py +++ b/pydantic_schemaorg/BoardingPolicyType.py @@ -11,5 +11,5 @@ class BoardingPolicyType(Enumeration): See: https://schema.org/BoardingPolicyType Model depth: 4 """ - type_: str = Field(default="BoardingPolicyType", alias='@type', constant=True) + type_: str = Field(default="BoardingPolicyType", alias='@type', const=True) diff --git a/pydantic_schemaorg/BoatReservation.py b/pydantic_schemaorg/BoatReservation.py index c3915de7..15355d87 100644 --- a/pydantic_schemaorg/BoatReservation.py +++ b/pydantic_schemaorg/BoatReservation.py @@ -13,5 +13,5 @@ class BoatReservation(Reservation): See: https://schema.org/BoatReservation Model depth: 4 """ - type_: str = Field(default="BoatReservation", alias='@type', constant=True) + type_: str = Field(default="BoatReservation", alias='@type', const=True) diff --git a/pydantic_schemaorg/BoatTerminal.py b/pydantic_schemaorg/BoatTerminal.py index 9935d91b..5f3b1e97 100644 --- a/pydantic_schemaorg/BoatTerminal.py +++ b/pydantic_schemaorg/BoatTerminal.py @@ -11,5 +11,5 @@ class BoatTerminal(CivicStructure): See: https://schema.org/BoatTerminal Model depth: 4 """ - type_: str = Field(default="BoatTerminal", alias='@type', constant=True) + type_: str = Field(default="BoatTerminal", alias='@type', const=True) diff --git a/pydantic_schemaorg/BoatTrip.py b/pydantic_schemaorg/BoatTrip.py index 3c047e50..3069c734 100644 --- a/pydantic_schemaorg/BoatTrip.py +++ b/pydantic_schemaorg/BoatTrip.py @@ -14,7 +14,7 @@ class BoatTrip(Trip): See: https://schema.org/BoatTrip Model depth: 4 """ - type_: str = Field(default="BoatTrip", alias='@type', constant=True) + type_: str = Field(default="BoatTrip", alias='@type', const=True) arrivalBoatTerminal: Optional[Union[List[Union['BoatTerminal', str]], 'BoatTerminal', str]] = Field( default=None, description="The terminal or port from which the boat arrives.", diff --git a/pydantic_schemaorg/BodyMeasurementArm.py b/pydantic_schemaorg/BodyMeasurementArm.py index f116d0fe..9f30ab7e 100644 --- a/pydantic_schemaorg/BodyMeasurementArm.py +++ b/pydantic_schemaorg/BodyMeasurementArm.py @@ -12,5 +12,5 @@ class BodyMeasurementArm(BodyMeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementArm Model depth: 6 """ - type_: str = Field(default="BodyMeasurementArm", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementArm", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyMeasurementBust.py b/pydantic_schemaorg/BodyMeasurementBust.py index b79c09b6..e0be1689 100644 --- a/pydantic_schemaorg/BodyMeasurementBust.py +++ b/pydantic_schemaorg/BodyMeasurementBust.py @@ -11,5 +11,5 @@ class BodyMeasurementBust(BodyMeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementBust Model depth: 6 """ - type_: str = Field(default="BodyMeasurementBust", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementBust", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyMeasurementChest.py b/pydantic_schemaorg/BodyMeasurementChest.py index 6eaa2a05..77497296 100644 --- a/pydantic_schemaorg/BodyMeasurementChest.py +++ b/pydantic_schemaorg/BodyMeasurementChest.py @@ -11,5 +11,5 @@ class BodyMeasurementChest(BodyMeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementChest Model depth: 6 """ - type_: str = Field(default="BodyMeasurementChest", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementChest", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyMeasurementFoot.py b/pydantic_schemaorg/BodyMeasurementFoot.py index fc0de814..2fd82610 100644 --- a/pydantic_schemaorg/BodyMeasurementFoot.py +++ b/pydantic_schemaorg/BodyMeasurementFoot.py @@ -12,5 +12,5 @@ class BodyMeasurementFoot(BodyMeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementFoot Model depth: 6 """ - type_: str = Field(default="BodyMeasurementFoot", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementFoot", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyMeasurementHand.py b/pydantic_schemaorg/BodyMeasurementHand.py index a1c4232e..02c9da28 100644 --- a/pydantic_schemaorg/BodyMeasurementHand.py +++ b/pydantic_schemaorg/BodyMeasurementHand.py @@ -12,5 +12,5 @@ class BodyMeasurementHand(BodyMeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementHand Model depth: 6 """ - type_: str = Field(default="BodyMeasurementHand", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementHand", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyMeasurementHead.py b/pydantic_schemaorg/BodyMeasurementHead.py index 2813df7b..5927c2c9 100644 --- a/pydantic_schemaorg/BodyMeasurementHead.py +++ b/pydantic_schemaorg/BodyMeasurementHead.py @@ -11,5 +11,5 @@ class BodyMeasurementHead(BodyMeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementHead Model depth: 6 """ - type_: str = Field(default="BodyMeasurementHead", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementHead", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyMeasurementHeight.py b/pydantic_schemaorg/BodyMeasurementHeight.py index eff1f3f9..e4b2d0fb 100644 --- a/pydantic_schemaorg/BodyMeasurementHeight.py +++ b/pydantic_schemaorg/BodyMeasurementHeight.py @@ -12,5 +12,5 @@ class BodyMeasurementHeight(BodyMeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementHeight Model depth: 6 """ - type_: str = Field(default="BodyMeasurementHeight", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementHeight", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyMeasurementHips.py b/pydantic_schemaorg/BodyMeasurementHips.py index b1ddd551..9303046e 100644 --- a/pydantic_schemaorg/BodyMeasurementHips.py +++ b/pydantic_schemaorg/BodyMeasurementHips.py @@ -11,5 +11,5 @@ class BodyMeasurementHips(BodyMeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementHips Model depth: 6 """ - type_: str = Field(default="BodyMeasurementHips", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementHips", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyMeasurementInsideLeg.py b/pydantic_schemaorg/BodyMeasurementInsideLeg.py index 83fb06b3..88b4fcc7 100644 --- a/pydantic_schemaorg/BodyMeasurementInsideLeg.py +++ b/pydantic_schemaorg/BodyMeasurementInsideLeg.py @@ -11,5 +11,5 @@ class BodyMeasurementInsideLeg(BodyMeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementInsideLeg Model depth: 6 """ - type_: str = Field(default="BodyMeasurementInsideLeg", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementInsideLeg", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyMeasurementNeck.py b/pydantic_schemaorg/BodyMeasurementNeck.py index 459eabcd..4ab4df0c 100644 --- a/pydantic_schemaorg/BodyMeasurementNeck.py +++ b/pydantic_schemaorg/BodyMeasurementNeck.py @@ -11,5 +11,5 @@ class BodyMeasurementNeck(BodyMeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementNeck Model depth: 6 """ - type_: str = Field(default="BodyMeasurementNeck", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementNeck", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyMeasurementTypeEnumeration.py b/pydantic_schemaorg/BodyMeasurementTypeEnumeration.py index 971872d7..1b920517 100644 --- a/pydantic_schemaorg/BodyMeasurementTypeEnumeration.py +++ b/pydantic_schemaorg/BodyMeasurementTypeEnumeration.py @@ -12,5 +12,5 @@ class BodyMeasurementTypeEnumeration(MeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementTypeEnumeration Model depth: 5 """ - type_: str = Field(default="BodyMeasurementTypeEnumeration", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementTypeEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyMeasurementUnderbust.py b/pydantic_schemaorg/BodyMeasurementUnderbust.py index bb22e881..69e22775 100644 --- a/pydantic_schemaorg/BodyMeasurementUnderbust.py +++ b/pydantic_schemaorg/BodyMeasurementUnderbust.py @@ -11,5 +11,5 @@ class BodyMeasurementUnderbust(BodyMeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementUnderbust Model depth: 6 """ - type_: str = Field(default="BodyMeasurementUnderbust", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementUnderbust", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyMeasurementWaist.py b/pydantic_schemaorg/BodyMeasurementWaist.py index f36b2835..37c4ce21 100644 --- a/pydantic_schemaorg/BodyMeasurementWaist.py +++ b/pydantic_schemaorg/BodyMeasurementWaist.py @@ -12,5 +12,5 @@ class BodyMeasurementWaist(BodyMeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementWaist Model depth: 6 """ - type_: str = Field(default="BodyMeasurementWaist", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementWaist", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyMeasurementWeight.py b/pydantic_schemaorg/BodyMeasurementWeight.py index 9c5f28a5..2bea38d7 100644 --- a/pydantic_schemaorg/BodyMeasurementWeight.py +++ b/pydantic_schemaorg/BodyMeasurementWeight.py @@ -11,5 +11,5 @@ class BodyMeasurementWeight(BodyMeasurementTypeEnumeration): See: https://schema.org/BodyMeasurementWeight Model depth: 6 """ - type_: str = Field(default="BodyMeasurementWeight", alias='@type', constant=True) + type_: str = Field(default="BodyMeasurementWeight", alias='@type', const=True) diff --git a/pydantic_schemaorg/BodyOfWater.py b/pydantic_schemaorg/BodyOfWater.py index aaf95839..6ba8e84d 100644 --- a/pydantic_schemaorg/BodyOfWater.py +++ b/pydantic_schemaorg/BodyOfWater.py @@ -11,5 +11,5 @@ class BodyOfWater(Landform): See: https://schema.org/BodyOfWater Model depth: 4 """ - type_: str = Field(default="BodyOfWater", alias='@type', constant=True) + type_: str = Field(default="BodyOfWater", alias='@type', const=True) diff --git a/pydantic_schemaorg/Bone.py b/pydantic_schemaorg/Bone.py index 39e27222..a7b9d43d 100644 --- a/pydantic_schemaorg/Bone.py +++ b/pydantic_schemaorg/Bone.py @@ -11,5 +11,5 @@ class Bone(AnatomicalStructure): See: https://schema.org/Bone Model depth: 4 """ - type_: str = Field(default="Bone", alias='@type', constant=True) + type_: str = Field(default="Bone", alias='@type', const=True) diff --git a/pydantic_schemaorg/Book.py b/pydantic_schemaorg/Book.py index 2c8e8e47..dee35960 100644 --- a/pydantic_schemaorg/Book.py +++ b/pydantic_schemaorg/Book.py @@ -15,7 +15,7 @@ class Book(CreativeWork): See: https://schema.org/Book Model depth: 3 """ - type_: str = Field(default="Book", alias='@type', constant=True) + type_: str = Field(default="Book", alias='@type', const=True) illustrator: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="The illustrator of the book.", diff --git a/pydantic_schemaorg/BookFormatType.py b/pydantic_schemaorg/BookFormatType.py index b82a8aa8..7d279f45 100644 --- a/pydantic_schemaorg/BookFormatType.py +++ b/pydantic_schemaorg/BookFormatType.py @@ -11,5 +11,5 @@ class BookFormatType(Enumeration): See: https://schema.org/BookFormatType Model depth: 4 """ - type_: str = Field(default="BookFormatType", alias='@type', constant=True) + type_: str = Field(default="BookFormatType", alias='@type', const=True) diff --git a/pydantic_schemaorg/BookSeries.py b/pydantic_schemaorg/BookSeries.py index 54fa56c7..c3dee4f9 100644 --- a/pydantic_schemaorg/BookSeries.py +++ b/pydantic_schemaorg/BookSeries.py @@ -11,5 +11,5 @@ class BookSeries(CreativeWorkSeries): See: https://schema.org/BookSeries Model depth: 4 """ - type_: str = Field(default="BookSeries", alias='@type', constant=True) + type_: str = Field(default="BookSeries", alias='@type', const=True) diff --git a/pydantic_schemaorg/BookStore.py b/pydantic_schemaorg/BookStore.py index 6814de17..8ca5333d 100644 --- a/pydantic_schemaorg/BookStore.py +++ b/pydantic_schemaorg/BookStore.py @@ -11,5 +11,5 @@ class BookStore(Store): See: https://schema.org/BookStore Model depth: 5 """ - type_: str = Field(default="BookStore", alias='@type', constant=True) + type_: str = Field(default="BookStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/BookmarkAction.py b/pydantic_schemaorg/BookmarkAction.py index a536c259..cdec3885 100644 --- a/pydantic_schemaorg/BookmarkAction.py +++ b/pydantic_schemaorg/BookmarkAction.py @@ -11,5 +11,5 @@ class BookmarkAction(OrganizeAction): See: https://schema.org/BookmarkAction Model depth: 4 """ - type_: str = Field(default="BookmarkAction", alias='@type', constant=True) + type_: str = Field(default="BookmarkAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Boolean.py b/pydantic_schemaorg/Boolean.py index 47ec5910..f9997936 100644 --- a/pydantic_schemaorg/Boolean.py +++ b/pydantic_schemaorg/Boolean.py @@ -11,5 +11,5 @@ class Boolean(DataType): See: https://schema.org/Boolean Model depth: 5 """ - type_: str = Field(default="Boolean", alias='@type', constant=True) + type_: str = Field(default="Boolean", alias='@type', const=True) diff --git a/pydantic_schemaorg/BorrowAction.py b/pydantic_schemaorg/BorrowAction.py index b71d81ea..7023543e 100644 --- a/pydantic_schemaorg/BorrowAction.py +++ b/pydantic_schemaorg/BorrowAction.py @@ -15,13 +15,13 @@ class BorrowAction(TransferAction): See: https://schema.org/BorrowAction Model depth: 4 """ - type_: str = Field(default="BorrowAction", alias='@type', constant=True) - lender: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + type_: str = Field(default="BorrowAction", alias='@type', const=True) + lender: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A sub property of participant. The person that lends the object being borrowed.", ) if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization diff --git a/pydantic_schemaorg/BowlingAlley.py b/pydantic_schemaorg/BowlingAlley.py index b5ece185..05878bc8 100644 --- a/pydantic_schemaorg/BowlingAlley.py +++ b/pydantic_schemaorg/BowlingAlley.py @@ -11,5 +11,5 @@ class BowlingAlley(SportsActivityLocation): See: https://schema.org/BowlingAlley Model depth: 5 """ - type_: str = Field(default="BowlingAlley", alias='@type', constant=True) + type_: str = Field(default="BowlingAlley", alias='@type', const=True) diff --git a/pydantic_schemaorg/BrainStructure.py b/pydantic_schemaorg/BrainStructure.py index 9097073c..7df4a64f 100644 --- a/pydantic_schemaorg/BrainStructure.py +++ b/pydantic_schemaorg/BrainStructure.py @@ -12,5 +12,5 @@ class BrainStructure(AnatomicalStructure): See: https://schema.org/BrainStructure Model depth: 4 """ - type_: str = Field(default="BrainStructure", alias='@type', constant=True) + type_: str = Field(default="BrainStructure", alias='@type', const=True) diff --git a/pydantic_schemaorg/Brand.py b/pydantic_schemaorg/Brand.py index 4b584375..2b929e12 100644 --- a/pydantic_schemaorg/Brand.py +++ b/pydantic_schemaorg/Brand.py @@ -16,7 +16,7 @@ class Brand(Intangible): See: https://schema.org/Brand Model depth: 3 """ - type_: str = Field(default="Brand", alias='@type', constant=True) + type_: str = Field(default="Brand", alias='@type', const=True) aggregateRating: Optional[Union[List[Union['AggregateRating', str]], 'AggregateRating', str]] = Field( default=None, description="The overall rating, based on a collection of reviews or ratings, of the item.", diff --git a/pydantic_schemaorg/BreadcrumbList.py b/pydantic_schemaorg/BreadcrumbList.py index 08587ef1..f15be78e 100644 --- a/pydantic_schemaorg/BreadcrumbList.py +++ b/pydantic_schemaorg/BreadcrumbList.py @@ -18,5 +18,5 @@ class BreadcrumbList(ItemList): See: https://schema.org/BreadcrumbList Model depth: 4 """ - type_: str = Field(default="BreadcrumbList", alias='@type', constant=True) + type_: str = Field(default="BreadcrumbList", alias='@type', const=True) diff --git a/pydantic_schemaorg/Brewery.py b/pydantic_schemaorg/Brewery.py index ab90673a..6ab3d114 100644 --- a/pydantic_schemaorg/Brewery.py +++ b/pydantic_schemaorg/Brewery.py @@ -11,5 +11,5 @@ class Brewery(FoodEstablishment): See: https://schema.org/Brewery Model depth: 5 """ - type_: str = Field(default="Brewery", alias='@type', constant=True) + type_: str = Field(default="Brewery", alias='@type', const=True) diff --git a/pydantic_schemaorg/Bridge.py b/pydantic_schemaorg/Bridge.py index 8ae3874b..9e8b070d 100644 --- a/pydantic_schemaorg/Bridge.py +++ b/pydantic_schemaorg/Bridge.py @@ -11,5 +11,5 @@ class Bridge(CivicStructure): See: https://schema.org/Bridge Model depth: 4 """ - type_: str = Field(default="Bridge", alias='@type', constant=True) + type_: str = Field(default="Bridge", alias='@type', const=True) diff --git a/pydantic_schemaorg/BroadcastChannel.py b/pydantic_schemaorg/BroadcastChannel.py index d05136de..7f572e48 100644 --- a/pydantic_schemaorg/BroadcastChannel.py +++ b/pydantic_schemaorg/BroadcastChannel.py @@ -15,7 +15,7 @@ class BroadcastChannel(Intangible): See: https://schema.org/BroadcastChannel Model depth: 3 """ - type_: str = Field(default="BroadcastChannel", alias='@type', constant=True) + type_: str = Field(default="BroadcastChannel", alias='@type', const=True) broadcastChannelId: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The unique address by which the BroadcastService can be identified in a provider lineup." diff --git a/pydantic_schemaorg/BroadcastEvent.py b/pydantic_schemaorg/BroadcastEvent.py index afcb0994..ce09ddf8 100644 --- a/pydantic_schemaorg/BroadcastEvent.py +++ b/pydantic_schemaorg/BroadcastEvent.py @@ -15,7 +15,7 @@ class BroadcastEvent(PublicationEvent): See: https://schema.org/BroadcastEvent Model depth: 4 """ - type_: str = Field(default="BroadcastEvent", alias='@type', constant=True) + type_: str = Field(default="BroadcastEvent", alias='@type', const=True) isLiveBroadcast: Optional[Union[List[Union[StrictBool, 'Boolean', str]], StrictBool, 'Boolean', str]] = Field( default=None, description="True if the broadcast is of a live event.", diff --git a/pydantic_schemaorg/BroadcastFrequencySpecification.py b/pydantic_schemaorg/BroadcastFrequencySpecification.py index 3d849300..6d2f26fe 100644 --- a/pydantic_schemaorg/BroadcastFrequencySpecification.py +++ b/pydantic_schemaorg/BroadcastFrequencySpecification.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -15,12 +15,12 @@ class BroadcastFrequencySpecification(Intangible): See: https://schema.org/BroadcastFrequencySpecification Model depth: 3 """ - type_: str = Field(default="BroadcastFrequencySpecification", alias='@type', constant=True) + type_: str = Field(default="BroadcastFrequencySpecification", alias='@type', const=True) broadcastSignalModulation: Optional[Union[List[Union[str, 'Text', 'QualitativeValue']], str, 'Text', 'QualitativeValue']] = Field( default=None, description="The modulation (e.g. FM, AM, etc) used by a particular broadcast service.", ) - broadcastFrequencyValue: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + broadcastFrequencyValue: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The frequency in MHz for a particular broadcast.", ) diff --git a/pydantic_schemaorg/BroadcastRelease.py b/pydantic_schemaorg/BroadcastRelease.py index 5408a926..8ebbce50 100644 --- a/pydantic_schemaorg/BroadcastRelease.py +++ b/pydantic_schemaorg/BroadcastRelease.py @@ -11,5 +11,5 @@ class BroadcastRelease(MusicAlbumReleaseType): See: https://schema.org/BroadcastRelease Model depth: 5 """ - type_: str = Field(default="BroadcastRelease", alias='@type', constant=True) + type_: str = Field(default="BroadcastRelease", alias='@type', const=True) diff --git a/pydantic_schemaorg/BroadcastService.py b/pydantic_schemaorg/BroadcastService.py index 50fed3ad..52f43ef2 100644 --- a/pydantic_schemaorg/BroadcastService.py +++ b/pydantic_schemaorg/BroadcastService.py @@ -14,7 +14,7 @@ class BroadcastService(Service): See: https://schema.org/BroadcastService Model depth: 4 """ - type_: str = Field(default="BroadcastService", alias='@type', constant=True) + type_: str = Field(default="BroadcastService", alias='@type', const=True) broadcastFrequency: Optional[Union[List[Union[str, 'Text', 'BroadcastFrequencySpecification']], str, 'Text', 'BroadcastFrequencySpecification']] = Field( default=None, description="The frequency used for over-the-air broadcasts. Numeric values or simple ranges e.g." diff --git a/pydantic_schemaorg/BrokerageAccount.py b/pydantic_schemaorg/BrokerageAccount.py index efda5bff..17a5a97a 100644 --- a/pydantic_schemaorg/BrokerageAccount.py +++ b/pydantic_schemaorg/BrokerageAccount.py @@ -12,5 +12,5 @@ class BrokerageAccount(InvestmentOrDeposit): See: https://schema.org/BrokerageAccount Model depth: 6 """ - type_: str = Field(default="BrokerageAccount", alias='@type', constant=True) + type_: str = Field(default="BrokerageAccount", alias='@type', const=True) diff --git a/pydantic_schemaorg/BuddhistTemple.py b/pydantic_schemaorg/BuddhistTemple.py index 0649a688..bf0adf28 100644 --- a/pydantic_schemaorg/BuddhistTemple.py +++ b/pydantic_schemaorg/BuddhistTemple.py @@ -11,5 +11,5 @@ class BuddhistTemple(PlaceOfWorship): See: https://schema.org/BuddhistTemple Model depth: 5 """ - type_: str = Field(default="BuddhistTemple", alias='@type', constant=True) + type_: str = Field(default="BuddhistTemple", alias='@type', const=True) diff --git a/pydantic_schemaorg/BusOrCoach.py b/pydantic_schemaorg/BusOrCoach.py index 61400aed..373c5086 100644 --- a/pydantic_schemaorg/BusOrCoach.py +++ b/pydantic_schemaorg/BusOrCoach.py @@ -15,7 +15,7 @@ class BusOrCoach(Vehicle): See: https://schema.org/BusOrCoach Model depth: 4 """ - type_: str = Field(default="BusOrCoach", alias='@type', constant=True) + type_: str = Field(default="BusOrCoach", alias='@type', const=True) acrissCode: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The ACRISS Car Classification Code is a code used by many car rental companies, for classifying" diff --git a/pydantic_schemaorg/BusReservation.py b/pydantic_schemaorg/BusReservation.py index 52bc39a5..8fad610e 100644 --- a/pydantic_schemaorg/BusReservation.py +++ b/pydantic_schemaorg/BusReservation.py @@ -13,5 +13,5 @@ class BusReservation(Reservation): See: https://schema.org/BusReservation Model depth: 4 """ - type_: str = Field(default="BusReservation", alias='@type', constant=True) + type_: str = Field(default="BusReservation", alias='@type', const=True) diff --git a/pydantic_schemaorg/BusStation.py b/pydantic_schemaorg/BusStation.py index b00f6655..a44a1035 100644 --- a/pydantic_schemaorg/BusStation.py +++ b/pydantic_schemaorg/BusStation.py @@ -11,5 +11,5 @@ class BusStation(CivicStructure): See: https://schema.org/BusStation Model depth: 4 """ - type_: str = Field(default="BusStation", alias='@type', constant=True) + type_: str = Field(default="BusStation", alias='@type', const=True) diff --git a/pydantic_schemaorg/BusStop.py b/pydantic_schemaorg/BusStop.py index 6d2fc7aa..f62ccb41 100644 --- a/pydantic_schemaorg/BusStop.py +++ b/pydantic_schemaorg/BusStop.py @@ -11,5 +11,5 @@ class BusStop(CivicStructure): See: https://schema.org/BusStop Model depth: 4 """ - type_: str = Field(default="BusStop", alias='@type', constant=True) + type_: str = Field(default="BusStop", alias='@type', const=True) diff --git a/pydantic_schemaorg/BusTrip.py b/pydantic_schemaorg/BusTrip.py index 172bd04d..e20151db 100644 --- a/pydantic_schemaorg/BusTrip.py +++ b/pydantic_schemaorg/BusTrip.py @@ -14,7 +14,7 @@ class BusTrip(Trip): See: https://schema.org/BusTrip Model depth: 4 """ - type_: str = Field(default="BusTrip", alias='@type', constant=True) + type_: str = Field(default="BusTrip", alias='@type', const=True) departureBusStop: Optional[Union[List[Union['BusStop', 'BusStation', str]], 'BusStop', 'BusStation', str]] = Field( default=None, description="The stop or station from which the bus departs.", diff --git a/pydantic_schemaorg/BusinessAudience.py b/pydantic_schemaorg/BusinessAudience.py index 18b3488c..acbf85eb 100644 --- a/pydantic_schemaorg/BusinessAudience.py +++ b/pydantic_schemaorg/BusinessAudience.py @@ -15,7 +15,7 @@ class BusinessAudience(Audience): See: https://schema.org/BusinessAudience Model depth: 4 """ - type_: str = Field(default="BusinessAudience", alias='@type', constant=True) + type_: str = Field(default="BusinessAudience", alias='@type', const=True) yearsInOperation: Optional[Union[List[Union['QuantitativeValue', str]], 'QuantitativeValue', str]] = Field( default=None, description="The age of the business.", diff --git a/pydantic_schemaorg/BusinessEntityType.py b/pydantic_schemaorg/BusinessEntityType.py index fb777045..9bb58cbf 100644 --- a/pydantic_schemaorg/BusinessEntityType.py +++ b/pydantic_schemaorg/BusinessEntityType.py @@ -15,5 +15,5 @@ class BusinessEntityType(Enumeration): See: https://schema.org/BusinessEntityType Model depth: 4 """ - type_: str = Field(default="BusinessEntityType", alias='@type', constant=True) + type_: str = Field(default="BusinessEntityType", alias='@type', const=True) diff --git a/pydantic_schemaorg/BusinessEvent.py b/pydantic_schemaorg/BusinessEvent.py index 25fff070..c7dbcf7c 100644 --- a/pydantic_schemaorg/BusinessEvent.py +++ b/pydantic_schemaorg/BusinessEvent.py @@ -11,5 +11,5 @@ class BusinessEvent(Event): See: https://schema.org/BusinessEvent Model depth: 3 """ - type_: str = Field(default="BusinessEvent", alias='@type', constant=True) + type_: str = Field(default="BusinessEvent", alias='@type', const=True) diff --git a/pydantic_schemaorg/BusinessFunction.py b/pydantic_schemaorg/BusinessFunction.py index 900ad636..e21880a8 100644 --- a/pydantic_schemaorg/BusinessFunction.py +++ b/pydantic_schemaorg/BusinessFunction.py @@ -19,5 +19,5 @@ class BusinessFunction(Enumeration): See: https://schema.org/BusinessFunction Model depth: 4 """ - type_: str = Field(default="BusinessFunction", alias='@type', constant=True) + type_: str = Field(default="BusinessFunction", alias='@type', const=True) diff --git a/pydantic_schemaorg/BusinessSupport.py b/pydantic_schemaorg/BusinessSupport.py index 50217106..a3a7cc3d 100644 --- a/pydantic_schemaorg/BusinessSupport.py +++ b/pydantic_schemaorg/BusinessSupport.py @@ -11,5 +11,5 @@ class BusinessSupport(GovernmentBenefitsType): See: https://schema.org/BusinessSupport Model depth: 5 """ - type_: str = Field(default="BusinessSupport", alias='@type', constant=True) + type_: str = Field(default="BusinessSupport", alias='@type', const=True) diff --git a/pydantic_schemaorg/BuyAction.py b/pydantic_schemaorg/BuyAction.py index 82d8da2a..0a18ae27 100644 --- a/pydantic_schemaorg/BuyAction.py +++ b/pydantic_schemaorg/BuyAction.py @@ -15,12 +15,12 @@ class BuyAction(TradeAction): See: https://schema.org/BuyAction Model depth: 4 """ - type_: str = Field(default="BuyAction", alias='@type', constant=True) - vendor: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + type_: str = Field(default="BuyAction", alias='@type', const=True) + vendor: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="'vendor' is an earlier term for 'seller'.", ) - seller: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + seller: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="An entity which offers (sells / leases / lends / loans) the services / goods. A seller may" "also be a provider.", @@ -32,6 +32,6 @@ class BuyAction(TradeAction): if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.WarrantyPromise import WarrantyPromise diff --git a/pydantic_schemaorg/CDCPMDRecord.py b/pydantic_schemaorg/CDCPMDRecord.py index 9e8216bf..6032f143 100644 --- a/pydantic_schemaorg/CDCPMDRecord.py +++ b/pydantic_schemaorg/CDCPMDRecord.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union from datetime import date, datetime @@ -19,22 +19,22 @@ class CDCPMDRecord(StructuredValue): See: https://schema.org/CDCPMDRecord Model depth: 4 """ - type_: str = Field(default="CDCPMDRecord", alias='@type', constant=True) - cvdNumVentUse: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + type_: str = Field(default="CDCPMDRecord", alias='@type', const=True) + cvdNumVentUse: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="numventuse - MECHANICAL VENTILATORS IN USE: Total number of ventilators in use.", ) - cvdNumTotBeds: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + cvdNumTotBeds: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="numtotbeds - ALL HOSPITAL BEDS: Total number of all Inpatient and outpatient beds, including" "all staffed,ICU, licensed, and overflow (surge) beds used for inpatients or outpatients.", ) - cvdNumC19Died: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + cvdNumC19Died: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="numc19died - DEATHS: Patients with suspected or confirmed COVID-19 who died in the hospital," "ED, or any overflow location.", ) - cvdNumC19HOPats: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + cvdNumC19HOPats: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="numc19hopats - HOSPITAL ONSET: Patients hospitalized in an NHSN inpatient care location" "with onset of suspected or confirmed COVID-19 14 or more days after hospitalization.", @@ -45,12 +45,12 @@ class CDCPMDRecord(StructuredValue): "to identify the facility. To provide other details, [[healthcareReportingData]]" "can be used on a [[Hospital]] entry.", ) - cvdNumC19OverflowPats: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + cvdNumC19OverflowPats: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="numc19overflowpats - ED/OVERFLOW: Patients with suspected or confirmed COVID-19" "who are in the ED or any overflow location awaiting an inpatient bed.", ) - cvdNumBeds: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + cvdNumBeds: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="numbeds - HOSPITAL INPATIENT BEDS: Inpatient beds, including all staffed, licensed," "and overflow (surge) beds used for inpatients.", @@ -59,31 +59,31 @@ class CDCPMDRecord(StructuredValue): default=None, description="Publication date of an online listing.", ) - cvdNumICUBedsOcc: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + cvdNumICUBedsOcc: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="numicubedsocc - ICU BED OCCUPANCY: Total number of staffed inpatient ICU beds that are" "occupied.", ) - cvdNumVent: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + cvdNumVent: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="numvent - MECHANICAL VENTILATORS: Total number of ventilators available.", ) - cvdNumC19HospPats: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + cvdNumC19HospPats: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="numc19hosppats - HOSPITALIZED: Patients currently hospitalized in an inpatient care" "location who have suspected or confirmed COVID-19.", ) - cvdNumICUBeds: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + cvdNumICUBeds: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="numicubeds - ICU BEDS: Total number of staffed inpatient intensive care unit (ICU) beds.", ) - cvdNumC19OFMechVentPats: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + cvdNumC19OFMechVentPats: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="numc19ofmechventpats - ED/OVERFLOW and VENTILATED: Patients with suspected or confirmed" "COVID-19 who are in the ED or any overflow location awaiting an inpatient bed and on a mechanical" "ventilator.", ) - cvdNumC19MechVentPats: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + cvdNumC19MechVentPats: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="numc19mechventpats - HOSPITALIZED and VENTILATED: Patients hospitalized in an NHSN" "inpatient care location who have suspected or confirmed COVID-19 and are on a mechanical" @@ -99,7 +99,7 @@ class CDCPMDRecord(StructuredValue): default=None, description="collectiondate - Date for which patient counts are reported.", ) - cvdNumBedsOcc: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + cvdNumBedsOcc: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="numbedsocc - HOSPITAL INPATIENT BED OCCUPANCY: Total number of staffed inpatient beds" "that are occupied.", diff --git a/pydantic_schemaorg/CDFormat.py b/pydantic_schemaorg/CDFormat.py index 5ae50758..ba4e7c90 100644 --- a/pydantic_schemaorg/CDFormat.py +++ b/pydantic_schemaorg/CDFormat.py @@ -11,5 +11,5 @@ class CDFormat(MusicReleaseFormatType): See: https://schema.org/CDFormat Model depth: 5 """ - type_: str = Field(default="CDFormat", alias='@type', constant=True) + type_: str = Field(default="CDFormat", alias='@type', const=True) diff --git a/pydantic_schemaorg/CT.py b/pydantic_schemaorg/CT.py index dcbc7e3c..64f11c15 100644 --- a/pydantic_schemaorg/CT.py +++ b/pydantic_schemaorg/CT.py @@ -11,5 +11,5 @@ class CT(MedicalImagingTechnique): See: https://schema.org/CT Model depth: 6 """ - type_: str = Field(default="CT", alias='@type', constant=True) + type_: str = Field(default="CT", alias='@type', const=True) diff --git a/pydantic_schemaorg/CableOrSatelliteService.py b/pydantic_schemaorg/CableOrSatelliteService.py index bcd34142..390fb37c 100644 --- a/pydantic_schemaorg/CableOrSatelliteService.py +++ b/pydantic_schemaorg/CableOrSatelliteService.py @@ -12,5 +12,5 @@ class CableOrSatelliteService(Service): See: https://schema.org/CableOrSatelliteService Model depth: 4 """ - type_: str = Field(default="CableOrSatelliteService", alias='@type', constant=True) + type_: str = Field(default="CableOrSatelliteService", alias='@type', const=True) diff --git a/pydantic_schemaorg/CafeOrCoffeeShop.py b/pydantic_schemaorg/CafeOrCoffeeShop.py index 00f12746..8ff315ba 100644 --- a/pydantic_schemaorg/CafeOrCoffeeShop.py +++ b/pydantic_schemaorg/CafeOrCoffeeShop.py @@ -11,5 +11,5 @@ class CafeOrCoffeeShop(FoodEstablishment): See: https://schema.org/CafeOrCoffeeShop Model depth: 5 """ - type_: str = Field(default="CafeOrCoffeeShop", alias='@type', constant=True) + type_: str = Field(default="CafeOrCoffeeShop", alias='@type', const=True) diff --git a/pydantic_schemaorg/Campground.py b/pydantic_schemaorg/Campground.py index 718ffbd8..ac065fa2 100644 --- a/pydantic_schemaorg/Campground.py +++ b/pydantic_schemaorg/Campground.py @@ -21,5 +21,5 @@ class Campground(LodgingBusiness, CivicStructure): See: https://schema.org/Campground Model depth: 4 """ - type_: str = Field(default="Campground", alias='@type', constant=True) + type_: str = Field(default="Campground", alias='@type', const=True) diff --git a/pydantic_schemaorg/CampingPitch.py b/pydantic_schemaorg/CampingPitch.py index 35ef3ba7..0835e9da 100644 --- a/pydantic_schemaorg/CampingPitch.py +++ b/pydantic_schemaorg/CampingPitch.py @@ -20,5 +20,5 @@ class CampingPitch(Accommodation): See: https://schema.org/CampingPitch Model depth: 4 """ - type_: str = Field(default="CampingPitch", alias='@type', constant=True) + type_: str = Field(default="CampingPitch", alias='@type', const=True) diff --git a/pydantic_schemaorg/Canal.py b/pydantic_schemaorg/Canal.py index a2d963e5..6920dd83 100644 --- a/pydantic_schemaorg/Canal.py +++ b/pydantic_schemaorg/Canal.py @@ -11,5 +11,5 @@ class Canal(BodyOfWater): See: https://schema.org/Canal Model depth: 5 """ - type_: str = Field(default="Canal", alias='@type', constant=True) + type_: str = Field(default="Canal", alias='@type', const=True) diff --git a/pydantic_schemaorg/CancelAction.py b/pydantic_schemaorg/CancelAction.py index 69460187..19da132d 100644 --- a/pydantic_schemaorg/CancelAction.py +++ b/pydantic_schemaorg/CancelAction.py @@ -12,5 +12,5 @@ class CancelAction(PlanAction): See: https://schema.org/CancelAction Model depth: 5 """ - type_: str = Field(default="CancelAction", alias='@type', constant=True) + type_: str = Field(default="CancelAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Car.py b/pydantic_schemaorg/Car.py index 7450a0d4..d9bb8756 100644 --- a/pydantic_schemaorg/Car.py +++ b/pydantic_schemaorg/Car.py @@ -14,7 +14,7 @@ class Car(Vehicle): See: https://schema.org/Car Model depth: 4 """ - type_: str = Field(default="Car", alias='@type', constant=True) + type_: str = Field(default="Car", alias='@type', const=True) acrissCode: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The ACRISS Car Classification Code is a code used by many car rental companies, for classifying" diff --git a/pydantic_schemaorg/CarUsageType.py b/pydantic_schemaorg/CarUsageType.py index 9bb1f0fc..2e599bc1 100644 --- a/pydantic_schemaorg/CarUsageType.py +++ b/pydantic_schemaorg/CarUsageType.py @@ -12,5 +12,5 @@ class CarUsageType(Enumeration): See: https://schema.org/CarUsageType Model depth: 4 """ - type_: str = Field(default="CarUsageType", alias='@type', constant=True) + type_: str = Field(default="CarUsageType", alias='@type', const=True) diff --git a/pydantic_schemaorg/Cardiovascular.py b/pydantic_schemaorg/Cardiovascular.py index 84572bfa..c72368b2 100644 --- a/pydantic_schemaorg/Cardiovascular.py +++ b/pydantic_schemaorg/Cardiovascular.py @@ -12,5 +12,5 @@ class Cardiovascular(MedicalSpecialty): See: https://schema.org/Cardiovascular Model depth: 6 """ - type_: str = Field(default="Cardiovascular", alias='@type', constant=True) + type_: str = Field(default="Cardiovascular", alias='@type', const=True) diff --git a/pydantic_schemaorg/CardiovascularExam.py b/pydantic_schemaorg/CardiovascularExam.py index 8731a0bc..cb90d2ea 100644 --- a/pydantic_schemaorg/CardiovascularExam.py +++ b/pydantic_schemaorg/CardiovascularExam.py @@ -11,5 +11,5 @@ class CardiovascularExam(PhysicalExam): See: https://schema.org/CardiovascularExam Model depth: 5 """ - type_: str = Field(default="CardiovascularExam", alias='@type', constant=True) + type_: str = Field(default="CardiovascularExam", alias='@type', const=True) diff --git a/pydantic_schemaorg/CaseSeries.py b/pydantic_schemaorg/CaseSeries.py index f7ca174a..ef222467 100644 --- a/pydantic_schemaorg/CaseSeries.py +++ b/pydantic_schemaorg/CaseSeries.py @@ -17,5 +17,5 @@ class CaseSeries(MedicalObservationalStudyDesign): See: https://schema.org/CaseSeries Model depth: 6 """ - type_: str = Field(default="CaseSeries", alias='@type', constant=True) + type_: str = Field(default="CaseSeries", alias='@type', const=True) diff --git a/pydantic_schemaorg/Casino.py b/pydantic_schemaorg/Casino.py index b0d0bbd7..c357e10c 100644 --- a/pydantic_schemaorg/Casino.py +++ b/pydantic_schemaorg/Casino.py @@ -11,5 +11,5 @@ class Casino(EntertainmentBusiness): See: https://schema.org/Casino Model depth: 5 """ - type_: str = Field(default="Casino", alias='@type', constant=True) + type_: str = Field(default="Casino", alias='@type', const=True) diff --git a/pydantic_schemaorg/CassetteFormat.py b/pydantic_schemaorg/CassetteFormat.py index 1deed86a..22ccc090 100644 --- a/pydantic_schemaorg/CassetteFormat.py +++ b/pydantic_schemaorg/CassetteFormat.py @@ -11,5 +11,5 @@ class CassetteFormat(MusicReleaseFormatType): See: https://schema.org/CassetteFormat Model depth: 5 """ - type_: str = Field(default="CassetteFormat", alias='@type', constant=True) + type_: str = Field(default="CassetteFormat", alias='@type', const=True) diff --git a/pydantic_schemaorg/CategoryCode.py b/pydantic_schemaorg/CategoryCode.py index c411770c..15e88e83 100644 --- a/pydantic_schemaorg/CategoryCode.py +++ b/pydantic_schemaorg/CategoryCode.py @@ -15,7 +15,7 @@ class CategoryCode(DefinedTerm): See: https://schema.org/CategoryCode Model depth: 4 """ - type_: str = Field(default="CategoryCode", alias='@type', constant=True) + type_: str = Field(default="CategoryCode", alias='@type', const=True) codeValue: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A short textual code that uniquely identifies the value.", diff --git a/pydantic_schemaorg/CategoryCodeSet.py b/pydantic_schemaorg/CategoryCodeSet.py index 4ec6e9fd..c32381c0 100644 --- a/pydantic_schemaorg/CategoryCodeSet.py +++ b/pydantic_schemaorg/CategoryCodeSet.py @@ -14,7 +14,7 @@ class CategoryCodeSet(DefinedTermSet): See: https://schema.org/CategoryCodeSet Model depth: 4 """ - type_: str = Field(default="CategoryCodeSet", alias='@type', constant=True) + type_: str = Field(default="CategoryCodeSet", alias='@type', const=True) hasCategoryCode: Optional[Union[List[Union['CategoryCode', str]], 'CategoryCode', str]] = Field( default=None, description="A Category code contained in this code set.", diff --git a/pydantic_schemaorg/CatholicChurch.py b/pydantic_schemaorg/CatholicChurch.py index dd9f86fd..25e27c1f 100644 --- a/pydantic_schemaorg/CatholicChurch.py +++ b/pydantic_schemaorg/CatholicChurch.py @@ -11,5 +11,5 @@ class CatholicChurch(Church): See: https://schema.org/CatholicChurch Model depth: 6 """ - type_: str = Field(default="CatholicChurch", alias='@type', constant=True) + type_: str = Field(default="CatholicChurch", alias='@type', const=True) diff --git a/pydantic_schemaorg/CausesHealthAspect.py b/pydantic_schemaorg/CausesHealthAspect.py index cbbe8147..06339f9d 100644 --- a/pydantic_schemaorg/CausesHealthAspect.py +++ b/pydantic_schemaorg/CausesHealthAspect.py @@ -11,5 +11,5 @@ class CausesHealthAspect(HealthAspectEnumeration): See: https://schema.org/CausesHealthAspect Model depth: 5 """ - type_: str = Field(default="CausesHealthAspect", alias='@type', constant=True) + type_: str = Field(default="CausesHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/Cemetery.py b/pydantic_schemaorg/Cemetery.py index 322a506f..e1f628b0 100644 --- a/pydantic_schemaorg/Cemetery.py +++ b/pydantic_schemaorg/Cemetery.py @@ -11,5 +11,5 @@ class Cemetery(CivicStructure): See: https://schema.org/Cemetery Model depth: 4 """ - type_: str = Field(default="Cemetery", alias='@type', constant=True) + type_: str = Field(default="Cemetery", alias='@type', const=True) diff --git a/pydantic_schemaorg/Chapter.py b/pydantic_schemaorg/Chapter.py index 3e582559..40269b45 100644 --- a/pydantic_schemaorg/Chapter.py +++ b/pydantic_schemaorg/Chapter.py @@ -15,7 +15,7 @@ class Chapter(CreativeWork): See: https://schema.org/Chapter Model depth: 3 """ - type_: str = Field(default="Chapter", alias='@type', constant=True) + type_: str = Field(default="Chapter", alias='@type', const=True) pageStart: Optional[Union[List[Union[int, 'Integer', str, 'Text']], int, 'Integer', str, 'Text']] = Field( default=None, description="The page on which the work starts; for example \"135\" or \"xiii\".", diff --git a/pydantic_schemaorg/CharitableIncorporatedOrganization.py b/pydantic_schemaorg/CharitableIncorporatedOrganization.py index 3b4fa887..35bbcfe9 100644 --- a/pydantic_schemaorg/CharitableIncorporatedOrganization.py +++ b/pydantic_schemaorg/CharitableIncorporatedOrganization.py @@ -12,5 +12,5 @@ class CharitableIncorporatedOrganization(UKNonprofitType): See: https://schema.org/CharitableIncorporatedOrganization Model depth: 6 """ - type_: str = Field(default="CharitableIncorporatedOrganization", alias='@type', constant=True) + type_: str = Field(default="CharitableIncorporatedOrganization", alias='@type', const=True) diff --git a/pydantic_schemaorg/CheckAction.py b/pydantic_schemaorg/CheckAction.py index 2aa0d321..04bfc9a6 100644 --- a/pydantic_schemaorg/CheckAction.py +++ b/pydantic_schemaorg/CheckAction.py @@ -12,5 +12,5 @@ class CheckAction(FindAction): See: https://schema.org/CheckAction Model depth: 4 """ - type_: str = Field(default="CheckAction", alias='@type', constant=True) + type_: str = Field(default="CheckAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/CheckInAction.py b/pydantic_schemaorg/CheckInAction.py index 4dc95532..ad23e36b 100644 --- a/pydantic_schemaorg/CheckInAction.py +++ b/pydantic_schemaorg/CheckInAction.py @@ -18,5 +18,5 @@ class CheckInAction(CommunicateAction): See: https://schema.org/CheckInAction Model depth: 5 """ - type_: str = Field(default="CheckInAction", alias='@type', constant=True) + type_: str = Field(default="CheckInAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/CheckOutAction.py b/pydantic_schemaorg/CheckOutAction.py index 5018f312..a2c565d0 100644 --- a/pydantic_schemaorg/CheckOutAction.py +++ b/pydantic_schemaorg/CheckOutAction.py @@ -17,5 +17,5 @@ class CheckOutAction(CommunicateAction): See: https://schema.org/CheckOutAction Model depth: 5 """ - type_: str = Field(default="CheckOutAction", alias='@type', constant=True) + type_: str = Field(default="CheckOutAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/CheckoutPage.py b/pydantic_schemaorg/CheckoutPage.py index e9a3261a..3cd4d723 100644 --- a/pydantic_schemaorg/CheckoutPage.py +++ b/pydantic_schemaorg/CheckoutPage.py @@ -11,5 +11,5 @@ class CheckoutPage(WebPage): See: https://schema.org/CheckoutPage Model depth: 4 """ - type_: str = Field(default="CheckoutPage", alias='@type', constant=True) + type_: str = Field(default="CheckoutPage", alias='@type', const=True) diff --git a/pydantic_schemaorg/ChemicalSubstance.py b/pydantic_schemaorg/ChemicalSubstance.py index e0c12e6a..2ce2f3f0 100644 --- a/pydantic_schemaorg/ChemicalSubstance.py +++ b/pydantic_schemaorg/ChemicalSubstance.py @@ -15,7 +15,7 @@ class ChemicalSubstance(BioChemEntity): See: https://schema.org/ChemicalSubstance Model depth: 3 """ - type_: str = Field(default="ChemicalSubstance", alias='@type', constant=True) + type_: str = Field(default="ChemicalSubstance", alias='@type', const=True) chemicalComposition: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The chemical composition describes the identity and relative ratio of the chemical" diff --git a/pydantic_schemaorg/ChildCare.py b/pydantic_schemaorg/ChildCare.py index 0aaccbcb..49612160 100644 --- a/pydantic_schemaorg/ChildCare.py +++ b/pydantic_schemaorg/ChildCare.py @@ -11,5 +11,5 @@ class ChildCare(LocalBusiness): See: https://schema.org/ChildCare Model depth: 4 """ - type_: str = Field(default="ChildCare", alias='@type', constant=True) + type_: str = Field(default="ChildCare", alias='@type', const=True) diff --git a/pydantic_schemaorg/ChildrensEvent.py b/pydantic_schemaorg/ChildrensEvent.py index 91a785dc..8ba50e8e 100644 --- a/pydantic_schemaorg/ChildrensEvent.py +++ b/pydantic_schemaorg/ChildrensEvent.py @@ -11,5 +11,5 @@ class ChildrensEvent(Event): See: https://schema.org/ChildrensEvent Model depth: 3 """ - type_: str = Field(default="ChildrensEvent", alias='@type', constant=True) + type_: str = Field(default="ChildrensEvent", alias='@type', const=True) diff --git a/pydantic_schemaorg/Chiropractic.py b/pydantic_schemaorg/Chiropractic.py index f5e663af..e7cd637d 100644 --- a/pydantic_schemaorg/Chiropractic.py +++ b/pydantic_schemaorg/Chiropractic.py @@ -12,5 +12,5 @@ class Chiropractic(MedicineSystem): See: https://schema.org/Chiropractic Model depth: 6 """ - type_: str = Field(default="Chiropractic", alias='@type', constant=True) + type_: str = Field(default="Chiropractic", alias='@type', const=True) diff --git a/pydantic_schemaorg/ChooseAction.py b/pydantic_schemaorg/ChooseAction.py index c9c6c8ca..fc2e10c2 100644 --- a/pydantic_schemaorg/ChooseAction.py +++ b/pydantic_schemaorg/ChooseAction.py @@ -14,7 +14,7 @@ class ChooseAction(AssessAction): See: https://schema.org/ChooseAction Model depth: 4 """ - type_: str = Field(default="ChooseAction", alias='@type', constant=True) + type_: str = Field(default="ChooseAction", alias='@type', const=True) option: Optional[Union[List[Union[str, 'Text', 'Thing']], str, 'Text', 'Thing']] = Field( default=None, description="A sub property of object. The options subject to this action.", diff --git a/pydantic_schemaorg/Church.py b/pydantic_schemaorg/Church.py index 97c70d62..c077107c 100644 --- a/pydantic_schemaorg/Church.py +++ b/pydantic_schemaorg/Church.py @@ -11,5 +11,5 @@ class Church(PlaceOfWorship): See: https://schema.org/Church Model depth: 5 """ - type_: str = Field(default="Church", alias='@type', constant=True) + type_: str = Field(default="Church", alias='@type', const=True) diff --git a/pydantic_schemaorg/City.py b/pydantic_schemaorg/City.py index 65644a56..4cc5be5b 100644 --- a/pydantic_schemaorg/City.py +++ b/pydantic_schemaorg/City.py @@ -11,5 +11,5 @@ class City(AdministrativeArea): See: https://schema.org/City Model depth: 4 """ - type_: str = Field(default="City", alias='@type', constant=True) + type_: str = Field(default="City", alias='@type', const=True) diff --git a/pydantic_schemaorg/CityHall.py b/pydantic_schemaorg/CityHall.py index dad9277c..57975095 100644 --- a/pydantic_schemaorg/CityHall.py +++ b/pydantic_schemaorg/CityHall.py @@ -11,5 +11,5 @@ class CityHall(GovernmentBuilding): See: https://schema.org/CityHall Model depth: 5 """ - type_: str = Field(default="CityHall", alias='@type', constant=True) + type_: str = Field(default="CityHall", alias='@type', const=True) diff --git a/pydantic_schemaorg/CivicStructure.py b/pydantic_schemaorg/CivicStructure.py index 6e1b58b2..71e45349 100644 --- a/pydantic_schemaorg/CivicStructure.py +++ b/pydantic_schemaorg/CivicStructure.py @@ -14,7 +14,7 @@ class CivicStructure(Place): See: https://schema.org/CivicStructure Model depth: 3 """ - type_: str = Field(default="CivicStructure", alias='@type', constant=True) + type_: str = Field(default="CivicStructure", alias='@type', const=True) openingHours: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The general opening hours for a business. Opening hours can be specified as a weekly time" diff --git a/pydantic_schemaorg/Claim.py b/pydantic_schemaorg/Claim.py index 80289716..ef0f0e92 100644 --- a/pydantic_schemaorg/Claim.py +++ b/pydantic_schemaorg/Claim.py @@ -23,12 +23,12 @@ class Claim(CreativeWork): See: https://schema.org/Claim Model depth: 3 """ - type_: str = Field(default="Claim", alias='@type', constant=True) + type_: str = Field(default="Claim", alias='@type', const=True) firstAppearance: Optional[Union[List[Union['CreativeWork', str]], 'CreativeWork', str]] = Field( default=None, description="Indicates the first known occurence of a [[Claim]] in some [[CreativeWork]].", ) - claimInterpreter: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + claimInterpreter: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="For a [[Claim]] interpreted from [[MediaObject]] content sed to indicate a claim contained," "implied or refined from the content of a [[MediaObject]].", @@ -41,5 +41,5 @@ class Claim(CreativeWork): if TYPE_CHECKING: from pydantic_schemaorg.CreativeWork import CreativeWork - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization diff --git a/pydantic_schemaorg/ClaimReview.py b/pydantic_schemaorg/ClaimReview.py index 48499906..a0908405 100644 --- a/pydantic_schemaorg/ClaimReview.py +++ b/pydantic_schemaorg/ClaimReview.py @@ -15,7 +15,7 @@ class ClaimReview(Review): See: https://schema.org/ClaimReview Model depth: 4 """ - type_: str = Field(default="ClaimReview", alias='@type', constant=True) + type_: str = Field(default="ClaimReview", alias='@type', const=True) claimReviewed: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A short summary of the specific claims reviewed in a ClaimReview.", diff --git a/pydantic_schemaorg/Class.py b/pydantic_schemaorg/Class.py index e2d8a5af..9537da8d 100644 --- a/pydantic_schemaorg/Class.py +++ b/pydantic_schemaorg/Class.py @@ -14,7 +14,7 @@ class Class(Intangible): See: https://schema.org/Class Model depth: 3 """ - type_: str = Field(default="Class", alias='@type', constant=True) + type_: str = Field(default="Class", alias='@type', const=True) supersededBy: Optional[Union[List[Union['Property', 'Enumeration', 'Class', str]], 'Property', 'Enumeration', 'Class', str]] = Field( default=None, description="Relates a term (i.e. a property, class or enumeration) to one that supersedes it.", diff --git a/pydantic_schemaorg/CleaningFee.py b/pydantic_schemaorg/CleaningFee.py index ab8521e4..cf1c1e60 100644 --- a/pydantic_schemaorg/CleaningFee.py +++ b/pydantic_schemaorg/CleaningFee.py @@ -12,5 +12,5 @@ class CleaningFee(PriceComponentTypeEnumeration): See: https://schema.org/CleaningFee Model depth: 5 """ - type_: str = Field(default="CleaningFee", alias='@type', constant=True) + type_: str = Field(default="CleaningFee", alias='@type', const=True) diff --git a/pydantic_schemaorg/Clinician.py b/pydantic_schemaorg/Clinician.py index 56df7983..179919e6 100644 --- a/pydantic_schemaorg/Clinician.py +++ b/pydantic_schemaorg/Clinician.py @@ -12,5 +12,5 @@ class Clinician(MedicalAudienceType): See: https://schema.org/Clinician Model depth: 6 """ - type_: str = Field(default="Clinician", alias='@type', constant=True) + type_: str = Field(default="Clinician", alias='@type', const=True) diff --git a/pydantic_schemaorg/Clip.py b/pydantic_schemaorg/Clip.py index 7ce8335c..e65c19a6 100644 --- a/pydantic_schemaorg/Clip.py +++ b/pydantic_schemaorg/Clip.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -15,7 +15,7 @@ class Clip(CreativeWork): See: https://schema.org/Clip Model depth: 3 """ - type_: str = Field(default="Clip", alias='@type', constant=True) + type_: str = Field(default="Clip", alias='@type', const=True) partOfSeason: Optional[Union[List[Union['CreativeWorkSeason', str]], 'CreativeWorkSeason', str]] = Field( default=None, description="The season to which this episode belongs.", @@ -30,7 +30,7 @@ class Clip(CreativeWork): description="A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors" "can be associated with individual items or with a series, episode, clip.", ) - startOffset: Optional[Union[List[Union[int, float, 'Number', 'HyperTocEntry', str]], int, float, 'Number', 'HyperTocEntry', str]] = Field( + startOffset: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'HyperTocEntry', str]], StrictInt, StrictFloat, 'Number', 'HyperTocEntry', str]] = Field( default=None, description="The start time of the clip expressed as the number of seconds from the beginning of the" "work.", @@ -52,7 +52,7 @@ class Clip(CreativeWork): default=None, description="The episode to which this clip belongs.", ) - endOffset: Optional[Union[List[Union[int, float, 'Number', 'HyperTocEntry', str]], int, float, 'Number', 'HyperTocEntry', str]] = Field( + endOffset: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'HyperTocEntry', str]], StrictInt, StrictFloat, 'Number', 'HyperTocEntry', str]] = Field( default=None, description="The end time of the clip expressed as the number of seconds from the beginning of the work.", ) diff --git a/pydantic_schemaorg/ClothingStore.py b/pydantic_schemaorg/ClothingStore.py index ec71fa3c..9b82639d 100644 --- a/pydantic_schemaorg/ClothingStore.py +++ b/pydantic_schemaorg/ClothingStore.py @@ -11,5 +11,5 @@ class ClothingStore(Store): See: https://schema.org/ClothingStore Model depth: 5 """ - type_: str = Field(default="ClothingStore", alias='@type', constant=True) + type_: str = Field(default="ClothingStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/CoOp.py b/pydantic_schemaorg/CoOp.py index 38d9a920..ac8853c7 100644 --- a/pydantic_schemaorg/CoOp.py +++ b/pydantic_schemaorg/CoOp.py @@ -11,5 +11,5 @@ class CoOp(GamePlayMode): See: https://schema.org/CoOp Model depth: 5 """ - type_: str = Field(default="CoOp", alias='@type', constant=True) + type_: str = Field(default="CoOp", alias='@type', const=True) diff --git a/pydantic_schemaorg/Code.py b/pydantic_schemaorg/Code.py index bdf6a7d0..55a5255b 100644 --- a/pydantic_schemaorg/Code.py +++ b/pydantic_schemaorg/Code.py @@ -12,5 +12,5 @@ class Code(CreativeWork): See: https://schema.org/Code Model depth: 3 """ - type_: str = Field(default="Code", alias='@type', constant=True) + type_: str = Field(default="Code", alias='@type', const=True) diff --git a/pydantic_schemaorg/CohortStudy.py b/pydantic_schemaorg/CohortStudy.py index 3729cdf8..fb66a7e4 100644 --- a/pydantic_schemaorg/CohortStudy.py +++ b/pydantic_schemaorg/CohortStudy.py @@ -18,5 +18,5 @@ class CohortStudy(MedicalObservationalStudyDesign): See: https://schema.org/CohortStudy Model depth: 6 """ - type_: str = Field(default="CohortStudy", alias='@type', constant=True) + type_: str = Field(default="CohortStudy", alias='@type', const=True) diff --git a/pydantic_schemaorg/Collection.py b/pydantic_schemaorg/Collection.py index 06e41d7d..9fe90871 100644 --- a/pydantic_schemaorg/Collection.py +++ b/pydantic_schemaorg/Collection.py @@ -14,7 +14,7 @@ class Collection(CreativeWork): See: https://schema.org/Collection Model depth: 3 """ - type_: str = Field(default="Collection", alias='@type', constant=True) + type_: str = Field(default="Collection", alias='@type', const=True) collectionSize: Optional[Union[List[Union[int, 'Integer', str]], int, 'Integer', str]] = Field( default=None, description="The number of items in the [[Collection]].", diff --git a/pydantic_schemaorg/CollectionPage.py b/pydantic_schemaorg/CollectionPage.py index ec53d4ba..b167db62 100644 --- a/pydantic_schemaorg/CollectionPage.py +++ b/pydantic_schemaorg/CollectionPage.py @@ -11,5 +11,5 @@ class CollectionPage(WebPage): See: https://schema.org/CollectionPage Model depth: 4 """ - type_: str = Field(default="CollectionPage", alias='@type', constant=True) + type_: str = Field(default="CollectionPage", alias='@type', const=True) diff --git a/pydantic_schemaorg/CollegeOrUniversity.py b/pydantic_schemaorg/CollegeOrUniversity.py index 8343ed42..d24a3d81 100644 --- a/pydantic_schemaorg/CollegeOrUniversity.py +++ b/pydantic_schemaorg/CollegeOrUniversity.py @@ -11,5 +11,5 @@ class CollegeOrUniversity(EducationalOrganization): See: https://schema.org/CollegeOrUniversity Model depth: 4 """ - type_: str = Field(default="CollegeOrUniversity", alias='@type', constant=True) + type_: str = Field(default="CollegeOrUniversity", alias='@type', const=True) diff --git a/pydantic_schemaorg/ComedyClub.py b/pydantic_schemaorg/ComedyClub.py index 857c8eaa..592730a1 100644 --- a/pydantic_schemaorg/ComedyClub.py +++ b/pydantic_schemaorg/ComedyClub.py @@ -11,5 +11,5 @@ class ComedyClub(EntertainmentBusiness): See: https://schema.org/ComedyClub Model depth: 5 """ - type_: str = Field(default="ComedyClub", alias='@type', constant=True) + type_: str = Field(default="ComedyClub", alias='@type', const=True) diff --git a/pydantic_schemaorg/ComedyEvent.py b/pydantic_schemaorg/ComedyEvent.py index aaa38756..1c552086 100644 --- a/pydantic_schemaorg/ComedyEvent.py +++ b/pydantic_schemaorg/ComedyEvent.py @@ -11,5 +11,5 @@ class ComedyEvent(Event): See: https://schema.org/ComedyEvent Model depth: 3 """ - type_: str = Field(default="ComedyEvent", alias='@type', constant=True) + type_: str = Field(default="ComedyEvent", alias='@type', const=True) diff --git a/pydantic_schemaorg/ComicCoverArt.py b/pydantic_schemaorg/ComicCoverArt.py index 69fe82c0..e5808b8d 100644 --- a/pydantic_schemaorg/ComicCoverArt.py +++ b/pydantic_schemaorg/ComicCoverArt.py @@ -12,5 +12,5 @@ class ComicCoverArt(CoverArt, ComicStory): See: https://schema.org/ComicCoverArt Model depth: 4 """ - type_: str = Field(default="ComicCoverArt", alias='@type', constant=True) + type_: str = Field(default="ComicCoverArt", alias='@type', const=True) diff --git a/pydantic_schemaorg/ComicIssue.py b/pydantic_schemaorg/ComicIssue.py index a2c66cad..f40b6ae6 100644 --- a/pydantic_schemaorg/ComicIssue.py +++ b/pydantic_schemaorg/ComicIssue.py @@ -18,7 +18,7 @@ class ComicIssue(PublicationIssue): See: https://schema.org/ComicIssue Model depth: 4 """ - type_: str = Field(default="ComicIssue", alias='@type', constant=True) + type_: str = Field(default="ComicIssue", alias='@type', const=True) colorist: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="The individual who adds color to inked drawings.", diff --git a/pydantic_schemaorg/ComicSeries.py b/pydantic_schemaorg/ComicSeries.py index ad329706..7320faf3 100644 --- a/pydantic_schemaorg/ComicSeries.py +++ b/pydantic_schemaorg/ComicSeries.py @@ -12,5 +12,5 @@ class ComicSeries(Periodical): See: https://schema.org/ComicSeries Model depth: 5 """ - type_: str = Field(default="ComicSeries", alias='@type', constant=True) + type_: str = Field(default="ComicSeries", alias='@type', const=True) diff --git a/pydantic_schemaorg/ComicStory.py b/pydantic_schemaorg/ComicStory.py index 7d71b407..a3b7a111 100644 --- a/pydantic_schemaorg/ComicStory.py +++ b/pydantic_schemaorg/ComicStory.py @@ -16,7 +16,7 @@ class ComicStory(CreativeWork): See: https://schema.org/ComicStory Model depth: 3 """ - type_: str = Field(default="ComicStory", alias='@type', constant=True) + type_: str = Field(default="ComicStory", alias='@type', const=True) colorist: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="The individual who adds color to inked drawings.", diff --git a/pydantic_schemaorg/Comment.py b/pydantic_schemaorg/Comment.py index 1b937e72..179acccc 100644 --- a/pydantic_schemaorg/Comment.py +++ b/pydantic_schemaorg/Comment.py @@ -15,7 +15,7 @@ class Comment(CreativeWork): See: https://schema.org/Comment Model depth: 3 """ - type_: str = Field(default="Comment", alias='@type', constant=True) + type_: str = Field(default="Comment", alias='@type', const=True) downvoteCount: Optional[Union[List[Union[int, 'Integer', str]], int, 'Integer', str]] = Field( default=None, description="The number of downvotes this question, answer or comment has received from the community.", diff --git a/pydantic_schemaorg/CommentAction.py b/pydantic_schemaorg/CommentAction.py index 668486d8..5c2960b3 100644 --- a/pydantic_schemaorg/CommentAction.py +++ b/pydantic_schemaorg/CommentAction.py @@ -14,7 +14,7 @@ class CommentAction(CommunicateAction): See: https://schema.org/CommentAction Model depth: 5 """ - type_: str = Field(default="CommentAction", alias='@type', constant=True) + type_: str = Field(default="CommentAction", alias='@type', const=True) resultComment: Optional[Union[List[Union['Comment', str]], 'Comment', str]] = Field( default=None, description="A sub property of result. The Comment created or sent as a result of this action.", diff --git a/pydantic_schemaorg/CommentPermission.py b/pydantic_schemaorg/CommentPermission.py index 609dfc47..2baa5112 100644 --- a/pydantic_schemaorg/CommentPermission.py +++ b/pydantic_schemaorg/CommentPermission.py @@ -11,5 +11,5 @@ class CommentPermission(DigitalDocumentPermissionType): See: https://schema.org/CommentPermission Model depth: 5 """ - type_: str = Field(default="CommentPermission", alias='@type', constant=True) + type_: str = Field(default="CommentPermission", alias='@type', const=True) diff --git a/pydantic_schemaorg/CommunicateAction.py b/pydantic_schemaorg/CommunicateAction.py index 8670dd48..ab33a3b8 100644 --- a/pydantic_schemaorg/CommunicateAction.py +++ b/pydantic_schemaorg/CommunicateAction.py @@ -15,7 +15,7 @@ class CommunicateAction(InteractAction): See: https://schema.org/CommunicateAction Model depth: 4 """ - type_: str = Field(default="CommunicateAction", alias='@type', constant=True) + type_: str = Field(default="CommunicateAction", alias='@type', const=True) about: Optional[Union[List[Union['Thing', str]], 'Thing', str]] = Field( default=None, description="The subject matter of the content.", @@ -24,7 +24,7 @@ class CommunicateAction(InteractAction): default=None, description="A sub property of instrument. The language used on this action.", ) - recipient: Optional[Union[List[Union['Organization', 'Person', 'ContactPoint', 'Audience', str]], 'Organization', 'Person', 'ContactPoint', 'Audience', str]] = Field( + recipient: Optional[Union[List[Union['ContactPoint', 'Audience', 'Organization', 'Person', str]], 'ContactPoint', 'Audience', 'Organization', 'Person', str]] = Field( default=None, description="A sub property of participant. The participant who is at the receiving end of the action.", ) @@ -39,8 +39,8 @@ class CommunicateAction(InteractAction): if TYPE_CHECKING: from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.Language import Language - from pydantic_schemaorg.Organization import Organization - from pydantic_schemaorg.Person import Person from pydantic_schemaorg.ContactPoint import ContactPoint from pydantic_schemaorg.Audience import Audience + from pydantic_schemaorg.Organization import Organization + from pydantic_schemaorg.Person import Person from pydantic_schemaorg.Text import Text diff --git a/pydantic_schemaorg/CommunityHealth.py b/pydantic_schemaorg/CommunityHealth.py index c800de2a..21e368f8 100644 --- a/pydantic_schemaorg/CommunityHealth.py +++ b/pydantic_schemaorg/CommunityHealth.py @@ -13,5 +13,5 @@ class CommunityHealth(MedicalSpecialty, MedicalBusiness): See: https://schema.org/CommunityHealth Model depth: 5 """ - type_: str = Field(default="CommunityHealth", alias='@type', constant=True) + type_: str = Field(default="CommunityHealth", alias='@type', const=True) diff --git a/pydantic_schemaorg/CompilationAlbum.py b/pydantic_schemaorg/CompilationAlbum.py index c429018d..7e7fa478 100644 --- a/pydantic_schemaorg/CompilationAlbum.py +++ b/pydantic_schemaorg/CompilationAlbum.py @@ -11,5 +11,5 @@ class CompilationAlbum(MusicAlbumProductionType): See: https://schema.org/CompilationAlbum Model depth: 5 """ - type_: str = Field(default="CompilationAlbum", alias='@type', constant=True) + type_: str = Field(default="CompilationAlbum", alias='@type', const=True) diff --git a/pydantic_schemaorg/CompleteDataFeed.py b/pydantic_schemaorg/CompleteDataFeed.py index 2a89cabf..76b8a5d6 100644 --- a/pydantic_schemaorg/CompleteDataFeed.py +++ b/pydantic_schemaorg/CompleteDataFeed.py @@ -18,5 +18,5 @@ class CompleteDataFeed(DataFeed): See: https://schema.org/CompleteDataFeed Model depth: 5 """ - type_: str = Field(default="CompleteDataFeed", alias='@type', constant=True) + type_: str = Field(default="CompleteDataFeed", alias='@type', const=True) diff --git a/pydantic_schemaorg/Completed.py b/pydantic_schemaorg/Completed.py index 15aa205c..c6b48062 100644 --- a/pydantic_schemaorg/Completed.py +++ b/pydantic_schemaorg/Completed.py @@ -11,5 +11,5 @@ class Completed(MedicalStudyStatus): See: https://schema.org/Completed Model depth: 6 """ - type_: str = Field(default="Completed", alias='@type', constant=True) + type_: str = Field(default="Completed", alias='@type', const=True) diff --git a/pydantic_schemaorg/CompletedActionStatus.py b/pydantic_schemaorg/CompletedActionStatus.py index c9b04230..bafd75f8 100644 --- a/pydantic_schemaorg/CompletedActionStatus.py +++ b/pydantic_schemaorg/CompletedActionStatus.py @@ -11,5 +11,5 @@ class CompletedActionStatus(ActionStatusType): See: https://schema.org/CompletedActionStatus Model depth: 6 """ - type_: str = Field(default="CompletedActionStatus", alias='@type', constant=True) + type_: str = Field(default="CompletedActionStatus", alias='@type', const=True) diff --git a/pydantic_schemaorg/CompoundPriceSpecification.py b/pydantic_schemaorg/CompoundPriceSpecification.py index 3a487992..61b23439 100644 --- a/pydantic_schemaorg/CompoundPriceSpecification.py +++ b/pydantic_schemaorg/CompoundPriceSpecification.py @@ -17,7 +17,7 @@ class CompoundPriceSpecification(PriceSpecification): See: https://schema.org/CompoundPriceSpecification Model depth: 5 """ - type_: str = Field(default="CompoundPriceSpecification", alias='@type', constant=True) + type_: str = Field(default="CompoundPriceSpecification", alias='@type', const=True) priceType: Optional[Union[List[Union[str, 'Text', 'PriceTypeEnumeration']], str, 'Text', 'PriceTypeEnumeration']] = Field( default=None, description="Defines the type of a price specified for an offered product, for example a list price," diff --git a/pydantic_schemaorg/ComputerLanguage.py b/pydantic_schemaorg/ComputerLanguage.py index 4eb315da..4a8f992f 100644 --- a/pydantic_schemaorg/ComputerLanguage.py +++ b/pydantic_schemaorg/ComputerLanguage.py @@ -13,5 +13,5 @@ class ComputerLanguage(Intangible): See: https://schema.org/ComputerLanguage Model depth: 3 """ - type_: str = Field(default="ComputerLanguage", alias='@type', constant=True) + type_: str = Field(default="ComputerLanguage", alias='@type', const=True) diff --git a/pydantic_schemaorg/ComputerStore.py b/pydantic_schemaorg/ComputerStore.py index 97fc0455..76b56fc9 100644 --- a/pydantic_schemaorg/ComputerStore.py +++ b/pydantic_schemaorg/ComputerStore.py @@ -11,5 +11,5 @@ class ComputerStore(Store): See: https://schema.org/ComputerStore Model depth: 5 """ - type_: str = Field(default="ComputerStore", alias='@type', constant=True) + type_: str = Field(default="ComputerStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/ConfirmAction.py b/pydantic_schemaorg/ConfirmAction.py index c8230b0f..0f93fc0a 100644 --- a/pydantic_schemaorg/ConfirmAction.py +++ b/pydantic_schemaorg/ConfirmAction.py @@ -12,5 +12,5 @@ class ConfirmAction(InformAction): See: https://schema.org/ConfirmAction Model depth: 6 """ - type_: str = Field(default="ConfirmAction", alias='@type', constant=True) + type_: str = Field(default="ConfirmAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Consortium.py b/pydantic_schemaorg/Consortium.py index abb4d3a7..4c2130d9 100644 --- a/pydantic_schemaorg/Consortium.py +++ b/pydantic_schemaorg/Consortium.py @@ -11,5 +11,5 @@ class Consortium(Organization): See: https://schema.org/Consortium Model depth: 3 """ - type_: str = Field(default="Consortium", alias='@type', constant=True) + type_: str = Field(default="Consortium", alias='@type', const=True) diff --git a/pydantic_schemaorg/ConsumeAction.py b/pydantic_schemaorg/ConsumeAction.py index 8291558b..b7f201a8 100644 --- a/pydantic_schemaorg/ConsumeAction.py +++ b/pydantic_schemaorg/ConsumeAction.py @@ -14,7 +14,7 @@ class ConsumeAction(Action): See: https://schema.org/ConsumeAction Model depth: 3 """ - type_: str = Field(default="ConsumeAction", alias='@type', constant=True) + type_: str = Field(default="ConsumeAction", alias='@type', const=True) actionAccessibilityRequirement: Optional[Union[List[Union['ActionAccessSpecification', str]], 'ActionAccessSpecification', str]] = Field( default=None, description="A set of requirements that a must be fulfilled in order to perform an Action. If more than" diff --git a/pydantic_schemaorg/ContactPage.py b/pydantic_schemaorg/ContactPage.py index 144e8c08..03b34313 100644 --- a/pydantic_schemaorg/ContactPage.py +++ b/pydantic_schemaorg/ContactPage.py @@ -11,5 +11,5 @@ class ContactPage(WebPage): See: https://schema.org/ContactPage Model depth: 4 """ - type_: str = Field(default="ContactPage", alias='@type', constant=True) + type_: str = Field(default="ContactPage", alias='@type', const=True) diff --git a/pydantic_schemaorg/ContactPoint.py b/pydantic_schemaorg/ContactPoint.py index dc453368..0a4abd3d 100644 --- a/pydantic_schemaorg/ContactPoint.py +++ b/pydantic_schemaorg/ContactPoint.py @@ -14,7 +14,7 @@ class ContactPoint(StructuredValue): See: https://schema.org/ContactPoint Model depth: 4 """ - type_: str = Field(default="ContactPoint", alias='@type', constant=True) + type_: str = Field(default="ContactPoint", alias='@type', const=True) areaServed: Optional[Union[List[Union[str, 'Text', 'Place', 'AdministrativeArea', 'GeoShape']], str, 'Text', 'Place', 'AdministrativeArea', 'GeoShape']] = Field( default=None, description="The geographic area where a service or offered item is provided.", diff --git a/pydantic_schemaorg/ContactPointOption.py b/pydantic_schemaorg/ContactPointOption.py index d8fa1815..5b742c6c 100644 --- a/pydantic_schemaorg/ContactPointOption.py +++ b/pydantic_schemaorg/ContactPointOption.py @@ -11,5 +11,5 @@ class ContactPointOption(Enumeration): See: https://schema.org/ContactPointOption Model depth: 4 """ - type_: str = Field(default="ContactPointOption", alias='@type', constant=True) + type_: str = Field(default="ContactPointOption", alias='@type', const=True) diff --git a/pydantic_schemaorg/ContagiousnessHealthAspect.py b/pydantic_schemaorg/ContagiousnessHealthAspect.py index 48e5b2c7..9c256f51 100644 --- a/pydantic_schemaorg/ContagiousnessHealthAspect.py +++ b/pydantic_schemaorg/ContagiousnessHealthAspect.py @@ -11,5 +11,5 @@ class ContagiousnessHealthAspect(HealthAspectEnumeration): See: https://schema.org/ContagiousnessHealthAspect Model depth: 5 """ - type_: str = Field(default="ContagiousnessHealthAspect", alias='@type', constant=True) + type_: str = Field(default="ContagiousnessHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/Continent.py b/pydantic_schemaorg/Continent.py index 3f16ccae..63231940 100644 --- a/pydantic_schemaorg/Continent.py +++ b/pydantic_schemaorg/Continent.py @@ -11,5 +11,5 @@ class Continent(Landform): See: https://schema.org/Continent Model depth: 4 """ - type_: str = Field(default="Continent", alias='@type', constant=True) + type_: str = Field(default="Continent", alias='@type', const=True) diff --git a/pydantic_schemaorg/ControlAction.py b/pydantic_schemaorg/ControlAction.py index 4662e8fe..b79b8d3e 100644 --- a/pydantic_schemaorg/ControlAction.py +++ b/pydantic_schemaorg/ControlAction.py @@ -11,5 +11,5 @@ class ControlAction(Action): See: https://schema.org/ControlAction Model depth: 3 """ - type_: str = Field(default="ControlAction", alias='@type', constant=True) + type_: str = Field(default="ControlAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/ConvenienceStore.py b/pydantic_schemaorg/ConvenienceStore.py index a79f0ecd..23ff3158 100644 --- a/pydantic_schemaorg/ConvenienceStore.py +++ b/pydantic_schemaorg/ConvenienceStore.py @@ -11,5 +11,5 @@ class ConvenienceStore(Store): See: https://schema.org/ConvenienceStore Model depth: 5 """ - type_: str = Field(default="ConvenienceStore", alias='@type', constant=True) + type_: str = Field(default="ConvenienceStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/Conversation.py b/pydantic_schemaorg/Conversation.py index 241abada..79b837c1 100644 --- a/pydantic_schemaorg/Conversation.py +++ b/pydantic_schemaorg/Conversation.py @@ -12,5 +12,5 @@ class Conversation(CreativeWork): See: https://schema.org/Conversation Model depth: 3 """ - type_: str = Field(default="Conversation", alias='@type', constant=True) + type_: str = Field(default="Conversation", alias='@type', const=True) diff --git a/pydantic_schemaorg/CookAction.py b/pydantic_schemaorg/CookAction.py index e1a43aa3..c4a0fd18 100644 --- a/pydantic_schemaorg/CookAction.py +++ b/pydantic_schemaorg/CookAction.py @@ -14,12 +14,12 @@ class CookAction(CreateAction): See: https://schema.org/CookAction Model depth: 4 """ - type_: str = Field(default="CookAction", alias='@type', constant=True) + type_: str = Field(default="CookAction", alias='@type', const=True) recipe: Optional[Union[List[Union['Recipe', str]], 'Recipe', str]] = Field( default=None, description="A sub property of instrument. The recipe/instructions used to perform the action.", ) - foodEstablishment: Optional[Union[List[Union['FoodEstablishment', 'Place', str]], 'FoodEstablishment', 'Place', str]] = Field( + foodEstablishment: Optional[Union[List[Union['Place', 'FoodEstablishment', str]], 'Place', 'FoodEstablishment', str]] = Field( default=None, description="A sub property of location. The specific food establishment where the action occurred.", ) @@ -31,6 +31,6 @@ class CookAction(CreateAction): if TYPE_CHECKING: from pydantic_schemaorg.Recipe import Recipe - from pydantic_schemaorg.FoodEstablishment import FoodEstablishment from pydantic_schemaorg.Place import Place + from pydantic_schemaorg.FoodEstablishment import FoodEstablishment from pydantic_schemaorg.FoodEvent import FoodEvent diff --git a/pydantic_schemaorg/Corporation.py b/pydantic_schemaorg/Corporation.py index f15144be..e7c788ff 100644 --- a/pydantic_schemaorg/Corporation.py +++ b/pydantic_schemaorg/Corporation.py @@ -14,7 +14,7 @@ class Corporation(Organization): See: https://schema.org/Corporation Model depth: 3 """ - type_: str = Field(default="Corporation", alias='@type', constant=True) + type_: str = Field(default="Corporation", alias='@type', const=True) tickerSymbol: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The exchange traded instrument associated with a Corporation object. The tickerSymbol" diff --git a/pydantic_schemaorg/CorrectionComment.py b/pydantic_schemaorg/CorrectionComment.py index 950bd064..0e08b001 100644 --- a/pydantic_schemaorg/CorrectionComment.py +++ b/pydantic_schemaorg/CorrectionComment.py @@ -11,5 +11,5 @@ class CorrectionComment(Comment): See: https://schema.org/CorrectionComment Model depth: 4 """ - type_: str = Field(default="CorrectionComment", alias='@type', constant=True) + type_: str = Field(default="CorrectionComment", alias='@type', const=True) diff --git a/pydantic_schemaorg/Country.py b/pydantic_schemaorg/Country.py index ef966cf6..d3c4bddf 100644 --- a/pydantic_schemaorg/Country.py +++ b/pydantic_schemaorg/Country.py @@ -11,5 +11,5 @@ class Country(AdministrativeArea): See: https://schema.org/Country Model depth: 4 """ - type_: str = Field(default="Country", alias='@type', constant=True) + type_: str = Field(default="Country", alias='@type', const=True) diff --git a/pydantic_schemaorg/Course.py b/pydantic_schemaorg/Course.py index a8e42632..4f9c3051 100644 --- a/pydantic_schemaorg/Course.py +++ b/pydantic_schemaorg/Course.py @@ -20,7 +20,7 @@ class Course(LearningResource, CreativeWork): See: https://schema.org/Course Model depth: 3 """ - type_: str = Field(default="Course", alias='@type', constant=True) + type_: str = Field(default="Course", alias='@type', const=True) numberOfCredits: Optional[Union[List[Union[int, 'Integer', 'StructuredValue', str]], int, 'Integer', 'StructuredValue', str]] = Field( default=None, description="The number of credits or units awarded by a Course or required to complete an EducationalOccupationalProgram.", @@ -39,7 +39,7 @@ class Course(LearningResource, CreativeWork): description="An offering of the course at a specific time and place or through specific media or mode" "of study or to a specific section of students.", ) - coursePrerequisites: Optional[Union[List[Union[str, 'Text', 'Course', 'AlignmentObject']], str, 'Text', 'Course', 'AlignmentObject']] = Field( + coursePrerequisites: Optional[Union[List[Union[str, 'Text', 'AlignmentObject', 'Course']], str, 'Text', 'AlignmentObject', 'Course']] = Field( default=None, description="Requirements for taking the Course. May be completion of another [[Course]] or a textual" "description like \"permission of instructor\". Requirements may be a pre-requisite" diff --git a/pydantic_schemaorg/CourseInstance.py b/pydantic_schemaorg/CourseInstance.py index 6a8e5489..3e1be2b8 100644 --- a/pydantic_schemaorg/CourseInstance.py +++ b/pydantic_schemaorg/CourseInstance.py @@ -17,7 +17,7 @@ class CourseInstance(Event): See: https://schema.org/CourseInstance Model depth: 3 """ - type_: str = Field(default="CourseInstance", alias='@type', constant=True) + type_: str = Field(default="CourseInstance", alias='@type', const=True) courseWorkload: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The amount of work expected of students taking the course, often provided as a figure" diff --git a/pydantic_schemaorg/Courthouse.py b/pydantic_schemaorg/Courthouse.py index 3d3c23f0..20da0510 100644 --- a/pydantic_schemaorg/Courthouse.py +++ b/pydantic_schemaorg/Courthouse.py @@ -11,5 +11,5 @@ class Courthouse(GovernmentBuilding): See: https://schema.org/Courthouse Model depth: 5 """ - type_: str = Field(default="Courthouse", alias='@type', constant=True) + type_: str = Field(default="Courthouse", alias='@type', const=True) diff --git a/pydantic_schemaorg/CoverArt.py b/pydantic_schemaorg/CoverArt.py index 6a8cabf1..a1d25b98 100644 --- a/pydantic_schemaorg/CoverArt.py +++ b/pydantic_schemaorg/CoverArt.py @@ -11,5 +11,5 @@ class CoverArt(VisualArtwork): See: https://schema.org/CoverArt Model depth: 4 """ - type_: str = Field(default="CoverArt", alias='@type', constant=True) + type_: str = Field(default="CoverArt", alias='@type', const=True) diff --git a/pydantic_schemaorg/CovidTestingFacility.py b/pydantic_schemaorg/CovidTestingFacility.py index b4556d4e..96dd1538 100644 --- a/pydantic_schemaorg/CovidTestingFacility.py +++ b/pydantic_schemaorg/CovidTestingFacility.py @@ -16,5 +16,5 @@ class CovidTestingFacility(MedicalClinic): See: https://schema.org/CovidTestingFacility Model depth: 5 """ - type_: str = Field(default="CovidTestingFacility", alias='@type', constant=True) + type_: str = Field(default="CovidTestingFacility", alias='@type', const=True) diff --git a/pydantic_schemaorg/CreateAction.py b/pydantic_schemaorg/CreateAction.py index a5874253..8256d3ab 100644 --- a/pydantic_schemaorg/CreateAction.py +++ b/pydantic_schemaorg/CreateAction.py @@ -12,5 +12,5 @@ class CreateAction(Action): See: https://schema.org/CreateAction Model depth: 3 """ - type_: str = Field(default="CreateAction", alias='@type', constant=True) + type_: str = Field(default="CreateAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/CreativeWork.py b/pydantic_schemaorg/CreativeWork.py index 5bf67151..960490c4 100644 --- a/pydantic_schemaorg/CreativeWork.py +++ b/pydantic_schemaorg/CreativeWork.py @@ -2,9 +2,8 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from pydantic import AnyUrl, StrictBool +from pydantic import AnyUrl, StrictBool, StrictInt, StrictFloat from datetime import date, datetime -from decimal import Decimal from pydantic import Field @@ -18,7 +17,7 @@ class CreativeWork(Thing): See: https://schema.org/CreativeWork Model depth: 2 """ - type_: str = Field(default="CreativeWork", alias='@type', constant=True) + type_: str = Field(default="CreativeWork", alias='@type', const=True) pattern: Optional[Union[List[Union[str, 'Text', 'DefinedTerm']], str, 'Text', 'DefinedTerm']] = Field( default=None, description="A pattern that something has, for example 'polka dot', 'striped', 'Canadian flag'." @@ -76,7 +75,7 @@ class CreativeWork(Thing): description="The specific time described by a creative work, for works (e.g. articles, video objects" "etc.) that emphasise a particular moment within an Event.", ) - maintainer: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + maintainer: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other" "[[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions" @@ -93,13 +92,13 @@ class CreativeWork(Thing): default=None, description="The typical expected age range, e.g. '7-9', '11-'.", ) - author: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + author: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The author of this content or rating. Please note that author is special in that HTML 5" "provides a special mechanism for indicating authorship via the rel tag. That is equivalent" "to this and may be used interchangeably.", ) - funder: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + funder: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A person or organization that supports (sponsors) something through some kind of financial" "contribution.", @@ -185,11 +184,11 @@ class CreativeWork(Thing): default=None, description="Comments, typically from users.", ) - audio: Optional[Union[List[Union['AudioObject', 'MusicRecording', 'Clip', str]], 'AudioObject', 'MusicRecording', 'Clip', str]] = Field( + audio: Optional[Union[List[Union['Clip', 'AudioObject', 'MusicRecording', str]], 'Clip', 'AudioObject', 'MusicRecording', str]] = Field( default=None, description="An embedded audio object.", ) - video: Optional[Union[List[Union['VideoObject', 'Clip', str]], 'VideoObject', 'Clip', str]] = Field( + video: Optional[Union[List[Union['Clip', 'VideoObject', str]], 'Clip', 'VideoObject', str]] = Field( default=None, description="An embedded video object.", ) @@ -197,7 +196,7 @@ class CreativeWork(Thing): default=None, description="The Organization on whose behalf the creator was working.", ) - translator: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + translator: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="Organization or person who adapts a creative work to different languages, regional" "differences and technical requirements of a target market, or that translates during" @@ -245,7 +244,7 @@ class CreativeWork(Thing): "their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general" "description), or alongside [[editEIDR]] for a more edit-specific description.", ) - sdPublisher: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + sdPublisher: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="Indicates the party responsible for generating and publishing the current structured" "data markup, typically in cases where the structured data is derived automatically" @@ -298,7 +297,7 @@ class CreativeWork(Thing): "Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for" "the stages of their publication lifecycle.", ) - publisher: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + publisher: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The publisher of the creative work.", ) @@ -350,7 +349,7 @@ class CreativeWork(Thing): description="Example/instance/realization/derivation of the concept of this creative work. eg." "The paperback edition, first edition, or eBook.", ) - size: Optional[Union[List[Union[str, 'Text', 'SizeSpecification', 'DefinedTerm', 'QuantitativeValue']], str, 'Text', 'SizeSpecification', 'DefinedTerm', 'QuantitativeValue']] = Field( + size: Optional[Union[List[Union[str, 'Text', 'DefinedTerm', 'SizeSpecification', 'QuantitativeValue']], str, 'Text', 'DefinedTerm', 'SizeSpecification', 'QuantitativeValue']] = Field( default=None, description="A standardized size of a product or creative work, specified either through a simple" "textual string (for example 'XL', '32Wx34L'), a QuantitativeValue with a unitCode," @@ -362,7 +361,7 @@ class CreativeWork(Thing): description="A characteristic of the described resource that is physiologically dangerous to some" "users. Related to WCAG 2.0 guideline 2.3 ([WebSchemas wiki lists possible values](http://www.w3.org/wiki/WebSchemas/Accessibility)).", ) - copyrightYear: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + copyrightYear: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The year during which the claimed copyright for the CreativeWork was first asserted.", ) @@ -370,7 +369,7 @@ class CreativeWork(Thing): default=None, description="A media object that encodes this CreativeWork.", ) - creator: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + creator: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The creator/author of this CreativeWork. This is the same as the Author property for" "CreativeWork.", @@ -449,7 +448,7 @@ class CreativeWork(Thing): default=None, description="An intended audience, i.e. a group for whom something was created.", ) - sponsor: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + sponsor: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A person or organization that supports a thing through a pledge, promise, or financial" "contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.", @@ -532,7 +531,7 @@ class CreativeWork(Thing): description="Indicates that the resource is compatible with the referenced accessibility API ([WebSchemas" "wiki lists possible values](http://www.w3.org/wiki/WebSchemas/Accessibility)).", ) - version: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + version: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The version of the CreativeWork embodied by a specified resource.", ) @@ -545,7 +544,7 @@ class CreativeWork(Thing): default=None, description="A link to the page containing the comments of the CreativeWork.", ) - provider: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + provider: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The service provider, service operator, or service performer; the goods producer." "Another party (a seller) may offer those services or goods on behalf of the provider." @@ -560,7 +559,7 @@ class CreativeWork(Thing): "file formats can be indicated instead via the most appropriate URL, e.g. defining Web" "page or a Wikipedia entry.", ) - producer: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + producer: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The person or organization who produced the work (e.g. music album, movie, tv/radio" "series etc.).", @@ -596,11 +595,11 @@ class CreativeWork(Thing): description="The location depicted or described in the content. For example, the location in a photograph" "or painting.", ) - copyrightHolder: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + copyrightHolder: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The party holding the legal copyright to the CreativeWork.", ) - contributor: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + contributor: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A secondary contributor to the CreativeWork or Event.", ) @@ -639,9 +638,9 @@ class CreativeWork(Thing): from pydantic_schemaorg.ItemList import ItemList from pydantic_schemaorg.AlignmentObject import AlignmentObject from pydantic_schemaorg.Comment import Comment + from pydantic_schemaorg.Clip import Clip from pydantic_schemaorg.AudioObject import AudioObject from pydantic_schemaorg.MusicRecording import MusicRecording - from pydantic_schemaorg.Clip import Clip from pydantic_schemaorg.VideoObject import VideoObject from pydantic_schemaorg.Integer import Integer from pydantic_schemaorg.Country import Country diff --git a/pydantic_schemaorg/CreativeWorkSeason.py b/pydantic_schemaorg/CreativeWorkSeason.py index a3613c96..70e3573a 100644 --- a/pydantic_schemaorg/CreativeWorkSeason.py +++ b/pydantic_schemaorg/CreativeWorkSeason.py @@ -15,7 +15,7 @@ class CreativeWorkSeason(CreativeWork): See: https://schema.org/CreativeWorkSeason Model depth: 3 """ - type_: str = Field(default="CreativeWorkSeason", alias='@type', constant=True) + type_: str = Field(default="CreativeWorkSeason", alias='@type', const=True) trailer: Optional[Union[List[Union['VideoObject', str]], 'VideoObject', str]] = Field( default=None, description="The trailer of a movie or tv/radio series, season, episode, etc.", diff --git a/pydantic_schemaorg/CreativeWorkSeries.py b/pydantic_schemaorg/CreativeWorkSeries.py index 0353c1ca..5e4406a6 100644 --- a/pydantic_schemaorg/CreativeWorkSeries.py +++ b/pydantic_schemaorg/CreativeWorkSeries.py @@ -28,7 +28,7 @@ class CreativeWorkSeries(Series, CreativeWork): See: https://schema.org/CreativeWorkSeries Model depth: 3 """ - type_: str = Field(default="CreativeWorkSeries", alias='@type', constant=True) + type_: str = Field(default="CreativeWorkSeries", alias='@type', const=True) endDate: Optional[Union[List[Union[datetime, 'DateTime', date, 'Date', str]], datetime, 'DateTime', date, 'Date', str]] = Field( default=None, description="The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).", diff --git a/pydantic_schemaorg/CreditCard.py b/pydantic_schemaorg/CreditCard.py index 37e972ca..d8a03f2e 100644 --- a/pydantic_schemaorg/CreditCard.py +++ b/pydantic_schemaorg/CreditCard.py @@ -16,5 +16,5 @@ class CreditCard(PaymentCard, LoanOrCredit): See: https://schema.org/CreditCard Model depth: 6 """ - type_: str = Field(default="CreditCard", alias='@type', constant=True) + type_: str = Field(default="CreditCard", alias='@type', const=True) diff --git a/pydantic_schemaorg/Crematorium.py b/pydantic_schemaorg/Crematorium.py index 7b0a6ce2..3d40088d 100644 --- a/pydantic_schemaorg/Crematorium.py +++ b/pydantic_schemaorg/Crematorium.py @@ -11,5 +11,5 @@ class Crematorium(CivicStructure): See: https://schema.org/Crematorium Model depth: 4 """ - type_: str = Field(default="Crematorium", alias='@type', constant=True) + type_: str = Field(default="Crematorium", alias='@type', const=True) diff --git a/pydantic_schemaorg/CriticReview.py b/pydantic_schemaorg/CriticReview.py index 0b0ad4aa..f50986b0 100644 --- a/pydantic_schemaorg/CriticReview.py +++ b/pydantic_schemaorg/CriticReview.py @@ -17,5 +17,5 @@ class CriticReview(Review): See: https://schema.org/CriticReview Model depth: 4 """ - type_: str = Field(default="CriticReview", alias='@type', constant=True) + type_: str = Field(default="CriticReview", alias='@type', const=True) diff --git a/pydantic_schemaorg/CrossSectional.py b/pydantic_schemaorg/CrossSectional.py index f518688e..16dd7880 100644 --- a/pydantic_schemaorg/CrossSectional.py +++ b/pydantic_schemaorg/CrossSectional.py @@ -12,5 +12,5 @@ class CrossSectional(MedicalObservationalStudyDesign): See: https://schema.org/CrossSectional Model depth: 6 """ - type_: str = Field(default="CrossSectional", alias='@type', constant=True) + type_: str = Field(default="CrossSectional", alias='@type', const=True) diff --git a/pydantic_schemaorg/CssSelectorType.py b/pydantic_schemaorg/CssSelectorType.py index 7f74b9bf..7e2ae800 100644 --- a/pydantic_schemaorg/CssSelectorType.py +++ b/pydantic_schemaorg/CssSelectorType.py @@ -11,5 +11,5 @@ class CssSelectorType(Text): See: https://schema.org/CssSelectorType Model depth: 6 """ - type_: str = Field(default="CssSelectorType", alias='@type', constant=True) + type_: str = Field(default="CssSelectorType", alias='@type', const=True) diff --git a/pydantic_schemaorg/CurrencyConversionService.py b/pydantic_schemaorg/CurrencyConversionService.py index 97c4d59a..a788b06f 100644 --- a/pydantic_schemaorg/CurrencyConversionService.py +++ b/pydantic_schemaorg/CurrencyConversionService.py @@ -11,5 +11,5 @@ class CurrencyConversionService(FinancialProduct): See: https://schema.org/CurrencyConversionService Model depth: 5 """ - type_: str = Field(default="CurrencyConversionService", alias='@type', constant=True) + type_: str = Field(default="CurrencyConversionService", alias='@type', const=True) diff --git a/pydantic_schemaorg/DDxElement.py b/pydantic_schemaorg/DDxElement.py index 8fa2032c..fc506333 100644 --- a/pydantic_schemaorg/DDxElement.py +++ b/pydantic_schemaorg/DDxElement.py @@ -15,7 +15,7 @@ class DDxElement(MedicalIntangible): See: https://schema.org/DDxElement Model depth: 4 """ - type_: str = Field(default="DDxElement", alias='@type', constant=True) + type_: str = Field(default="DDxElement", alias='@type', const=True) diagnosis: Optional[Union[List[Union['MedicalCondition', str]], 'MedicalCondition', str]] = Field( default=None, description="One or more alternative conditions considered in the differential diagnosis process" diff --git a/pydantic_schemaorg/DJMixAlbum.py b/pydantic_schemaorg/DJMixAlbum.py index d4bbd5a0..1bbe7c2d 100644 --- a/pydantic_schemaorg/DJMixAlbum.py +++ b/pydantic_schemaorg/DJMixAlbum.py @@ -11,5 +11,5 @@ class DJMixAlbum(MusicAlbumProductionType): See: https://schema.org/DJMixAlbum Model depth: 5 """ - type_: str = Field(default="DJMixAlbum", alias='@type', constant=True) + type_: str = Field(default="DJMixAlbum", alias='@type', const=True) diff --git a/pydantic_schemaorg/DVDFormat.py b/pydantic_schemaorg/DVDFormat.py index c77ad6b6..df9cd8be 100644 --- a/pydantic_schemaorg/DVDFormat.py +++ b/pydantic_schemaorg/DVDFormat.py @@ -11,5 +11,5 @@ class DVDFormat(MusicReleaseFormatType): See: https://schema.org/DVDFormat Model depth: 5 """ - type_: str = Field(default="DVDFormat", alias='@type', constant=True) + type_: str = Field(default="DVDFormat", alias='@type', const=True) diff --git a/pydantic_schemaorg/DamagedCondition.py b/pydantic_schemaorg/DamagedCondition.py index 4dcac7ae..3e8df63f 100644 --- a/pydantic_schemaorg/DamagedCondition.py +++ b/pydantic_schemaorg/DamagedCondition.py @@ -11,5 +11,5 @@ class DamagedCondition(OfferItemCondition): See: https://schema.org/DamagedCondition Model depth: 5 """ - type_: str = Field(default="DamagedCondition", alias='@type', constant=True) + type_: str = Field(default="DamagedCondition", alias='@type', const=True) diff --git a/pydantic_schemaorg/DanceEvent.py b/pydantic_schemaorg/DanceEvent.py index 5f24260e..9a86432a 100644 --- a/pydantic_schemaorg/DanceEvent.py +++ b/pydantic_schemaorg/DanceEvent.py @@ -11,5 +11,5 @@ class DanceEvent(Event): See: https://schema.org/DanceEvent Model depth: 3 """ - type_: str = Field(default="DanceEvent", alias='@type', constant=True) + type_: str = Field(default="DanceEvent", alias='@type', const=True) diff --git a/pydantic_schemaorg/DanceGroup.py b/pydantic_schemaorg/DanceGroup.py index 83920fc3..a0ea3a4e 100644 --- a/pydantic_schemaorg/DanceGroup.py +++ b/pydantic_schemaorg/DanceGroup.py @@ -11,5 +11,5 @@ class DanceGroup(PerformingGroup): See: https://schema.org/DanceGroup Model depth: 4 """ - type_: str = Field(default="DanceGroup", alias='@type', constant=True) + type_: str = Field(default="DanceGroup", alias='@type', const=True) diff --git a/pydantic_schemaorg/DataCatalog.py b/pydantic_schemaorg/DataCatalog.py index 7cffe4e3..d2118e6d 100644 --- a/pydantic_schemaorg/DataCatalog.py +++ b/pydantic_schemaorg/DataCatalog.py @@ -15,7 +15,7 @@ class DataCatalog(CreativeWork): See: https://schema.org/DataCatalog Model depth: 3 """ - type_: str = Field(default="DataCatalog", alias='@type', constant=True) + type_: str = Field(default="DataCatalog", alias='@type', const=True) measurementTechnique: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text']], AnyUrl, 'URL', str, 'Text']] = Field( default=None, description="A technique or technology used in a [[Dataset]] (or [[DataDownload]], [[DataCatalog]])," diff --git a/pydantic_schemaorg/DataDownload.py b/pydantic_schemaorg/DataDownload.py index 979680b8..cc15ecec 100644 --- a/pydantic_schemaorg/DataDownload.py +++ b/pydantic_schemaorg/DataDownload.py @@ -15,7 +15,7 @@ class DataDownload(MediaObject): See: https://schema.org/DataDownload Model depth: 4 """ - type_: str = Field(default="DataDownload", alias='@type', constant=True) + type_: str = Field(default="DataDownload", alias='@type', const=True) measurementTechnique: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text']], AnyUrl, 'URL', str, 'Text']] = Field( default=None, description="A technique or technology used in a [[Dataset]] (or [[DataDownload]], [[DataCatalog]])," diff --git a/pydantic_schemaorg/DataFeed.py b/pydantic_schemaorg/DataFeed.py index 39be19c1..a6c4b452 100644 --- a/pydantic_schemaorg/DataFeed.py +++ b/pydantic_schemaorg/DataFeed.py @@ -14,8 +14,8 @@ class DataFeed(Dataset): See: https://schema.org/DataFeed Model depth: 4 """ - type_: str = Field(default="DataFeed", alias='@type', constant=True) - dataFeedElement: Optional[Union[List[Union[str, 'Text', 'Thing', 'DataFeedItem']], str, 'Text', 'Thing', 'DataFeedItem']] = Field( + type_: str = Field(default="DataFeed", alias='@type', const=True) + dataFeedElement: Optional[Union[List[Union[str, 'Text', 'DataFeedItem', 'Thing']], str, 'Text', 'DataFeedItem', 'Thing']] = Field( default=None, description="An item within in a data feed. Data feeds may have many elements.", ) @@ -23,5 +23,5 @@ class DataFeed(Dataset): if TYPE_CHECKING: from pydantic_schemaorg.Text import Text - from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.DataFeedItem import DataFeedItem + from pydantic_schemaorg.Thing import Thing diff --git a/pydantic_schemaorg/DataFeedItem.py b/pydantic_schemaorg/DataFeedItem.py index d7d1f506..88927402 100644 --- a/pydantic_schemaorg/DataFeedItem.py +++ b/pydantic_schemaorg/DataFeedItem.py @@ -15,7 +15,7 @@ class DataFeedItem(Intangible): See: https://schema.org/DataFeedItem Model depth: 3 """ - type_: str = Field(default="DataFeedItem", alias='@type', constant=True) + type_: str = Field(default="DataFeedItem", alias='@type', const=True) dateDeleted: Optional[Union[List[Union[datetime, 'DateTime', date, 'Date', str]], datetime, 'DateTime', date, 'Date', str]] = Field( default=None, description="The datetime the item was removed from the DataFeed.", diff --git a/pydantic_schemaorg/DataType.py b/pydantic_schemaorg/DataType.py index b4da99b6..70b4920e 100644 --- a/pydantic_schemaorg/DataType.py +++ b/pydantic_schemaorg/DataType.py @@ -11,5 +11,5 @@ class DataType(Class): See: https://schema.org/DataType Model depth: 4 """ - type_: str = Field(default="DataType", alias='@type', constant=True) + type_: str = Field(default="DataType", alias='@type', const=True) diff --git a/pydantic_schemaorg/Dataset.py b/pydantic_schemaorg/Dataset.py index a463b556..4914c354 100644 --- a/pydantic_schemaorg/Dataset.py +++ b/pydantic_schemaorg/Dataset.py @@ -16,7 +16,7 @@ class Dataset(CreativeWork): See: https://schema.org/Dataset Model depth: 3 """ - type_: str = Field(default="Dataset", alias='@type', constant=True) + type_: str = Field(default="Dataset", alias='@type', const=True) includedDataCatalog: Optional[Union[List[Union['DataCatalog', str]], 'DataCatalog', str]] = Field( default=None, description="A data catalog which contains this dataset (this property was previously 'catalog'," diff --git a/pydantic_schemaorg/Date.py b/pydantic_schemaorg/Date.py index 600dc852..a65450df 100644 --- a/pydantic_schemaorg/Date.py +++ b/pydantic_schemaorg/Date.py @@ -11,5 +11,5 @@ class Date(DataType): See: https://schema.org/Date Model depth: 5 """ - type_: str = Field(default="Date", alias='@type', constant=True) + type_: str = Field(default="Date", alias='@type', const=True) diff --git a/pydantic_schemaorg/DateTime.py b/pydantic_schemaorg/DateTime.py index 1974f8b1..30daaf95 100644 --- a/pydantic_schemaorg/DateTime.py +++ b/pydantic_schemaorg/DateTime.py @@ -12,5 +12,5 @@ class DateTime(DataType): See: https://schema.org/DateTime Model depth: 5 """ - type_: str = Field(default="DateTime", alias='@type', constant=True) + type_: str = Field(default="DateTime", alias='@type', const=True) diff --git a/pydantic_schemaorg/DatedMoneySpecification.py b/pydantic_schemaorg/DatedMoneySpecification.py index 2dad615f..ea9da8d9 100644 --- a/pydantic_schemaorg/DatedMoneySpecification.py +++ b/pydantic_schemaorg/DatedMoneySpecification.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union from datetime import date, datetime @@ -19,8 +19,8 @@ class DatedMoneySpecification(StructuredValue): See: https://schema.org/DatedMoneySpecification Model depth: 4 """ - type_: str = Field(default="DatedMoneySpecification", alias='@type', constant=True) - amount: Optional[Union[List[Union[int, float, 'Number', 'MonetaryAmount', str]], int, float, 'Number', 'MonetaryAmount', str]] = Field( + type_: str = Field(default="DatedMoneySpecification", alias='@type', const=True) + amount: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]], StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]] = Field( default=None, description="The amount of money.", ) diff --git a/pydantic_schemaorg/DayOfWeek.py b/pydantic_schemaorg/DayOfWeek.py index 0abe8d7b..9c7f5a53 100644 --- a/pydantic_schemaorg/DayOfWeek.py +++ b/pydantic_schemaorg/DayOfWeek.py @@ -15,5 +15,5 @@ class DayOfWeek(Enumeration): See: https://schema.org/DayOfWeek Model depth: 4 """ - type_: str = Field(default="DayOfWeek", alias='@type', constant=True) + type_: str = Field(default="DayOfWeek", alias='@type', const=True) diff --git a/pydantic_schemaorg/DaySpa.py b/pydantic_schemaorg/DaySpa.py index f4f3733b..48c43333 100644 --- a/pydantic_schemaorg/DaySpa.py +++ b/pydantic_schemaorg/DaySpa.py @@ -11,5 +11,5 @@ class DaySpa(HealthAndBeautyBusiness): See: https://schema.org/DaySpa Model depth: 5 """ - type_: str = Field(default="DaySpa", alias='@type', constant=True) + type_: str = Field(default="DaySpa", alias='@type', const=True) diff --git a/pydantic_schemaorg/DeactivateAction.py b/pydantic_schemaorg/DeactivateAction.py index 123af0f2..df5973a3 100644 --- a/pydantic_schemaorg/DeactivateAction.py +++ b/pydantic_schemaorg/DeactivateAction.py @@ -12,5 +12,5 @@ class DeactivateAction(ControlAction): See: https://schema.org/DeactivateAction Model depth: 4 """ - type_: str = Field(default="DeactivateAction", alias='@type', constant=True) + type_: str = Field(default="DeactivateAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/DecontextualizedContent.py b/pydantic_schemaorg/DecontextualizedContent.py index e9cd0473..25843ceb 100644 --- a/pydantic_schemaorg/DecontextualizedContent.py +++ b/pydantic_schemaorg/DecontextualizedContent.py @@ -26,5 +26,5 @@ class DecontextualizedContent(MediaManipulationRatingEnumeration): See: https://schema.org/DecontextualizedContent Model depth: 5 """ - type_: str = Field(default="DecontextualizedContent", alias='@type', constant=True) + type_: str = Field(default="DecontextualizedContent", alias='@type', const=True) diff --git a/pydantic_schemaorg/DefenceEstablishment.py b/pydantic_schemaorg/DefenceEstablishment.py index 3525199f..a649257b 100644 --- a/pydantic_schemaorg/DefenceEstablishment.py +++ b/pydantic_schemaorg/DefenceEstablishment.py @@ -11,5 +11,5 @@ class DefenceEstablishment(GovernmentBuilding): See: https://schema.org/DefenceEstablishment Model depth: 5 """ - type_: str = Field(default="DefenceEstablishment", alias='@type', constant=True) + type_: str = Field(default="DefenceEstablishment", alias='@type', const=True) diff --git a/pydantic_schemaorg/DefinedRegion.py b/pydantic_schemaorg/DefinedRegion.py index 43c82945..d9af5a13 100644 --- a/pydantic_schemaorg/DefinedRegion.py +++ b/pydantic_schemaorg/DefinedRegion.py @@ -20,7 +20,7 @@ class DefinedRegion(StructuredValue): See: https://schema.org/DefinedRegion Model depth: 4 """ - type_: str = Field(default="DefinedRegion", alias='@type', constant=True) + type_: str = Field(default="DefinedRegion", alias='@type', const=True) postalCode: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The postal code. For example, 94043.", diff --git a/pydantic_schemaorg/DefinedTerm.py b/pydantic_schemaorg/DefinedTerm.py index faaf01ff..7d6fa0de 100644 --- a/pydantic_schemaorg/DefinedTerm.py +++ b/pydantic_schemaorg/DefinedTerm.py @@ -19,7 +19,7 @@ class DefinedTerm(Intangible): See: https://schema.org/DefinedTerm Model depth: 3 """ - type_: str = Field(default="DefinedTerm", alias='@type', constant=True) + type_: str = Field(default="DefinedTerm", alias='@type', const=True) termCode: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A code that identifies this [[DefinedTerm]] within a [[DefinedTermSet]]", diff --git a/pydantic_schemaorg/DefinedTermSet.py b/pydantic_schemaorg/DefinedTermSet.py index 3b460feb..dfbc5ab8 100644 --- a/pydantic_schemaorg/DefinedTermSet.py +++ b/pydantic_schemaorg/DefinedTermSet.py @@ -15,7 +15,7 @@ class DefinedTermSet(CreativeWork): See: https://schema.org/DefinedTermSet Model depth: 3 """ - type_: str = Field(default="DefinedTermSet", alias='@type', constant=True) + type_: str = Field(default="DefinedTermSet", alias='@type', const=True) hasDefinedTerm: Optional[Union[List[Union['DefinedTerm', str]], 'DefinedTerm', str]] = Field( default=None, description="A Defined Term contained in this term set.", diff --git a/pydantic_schemaorg/DefinitiveLegalValue.py b/pydantic_schemaorg/DefinitiveLegalValue.py index 2fbb14ba..d19c9589 100644 --- a/pydantic_schemaorg/DefinitiveLegalValue.py +++ b/pydantic_schemaorg/DefinitiveLegalValue.py @@ -13,5 +13,5 @@ class DefinitiveLegalValue(LegalValueLevel): See: https://schema.org/DefinitiveLegalValue Model depth: 5 """ - type_: str = Field(default="DefinitiveLegalValue", alias='@type', constant=True) + type_: str = Field(default="DefinitiveLegalValue", alias='@type', const=True) diff --git a/pydantic_schemaorg/DeleteAction.py b/pydantic_schemaorg/DeleteAction.py index 7a90cfe2..133122c5 100644 --- a/pydantic_schemaorg/DeleteAction.py +++ b/pydantic_schemaorg/DeleteAction.py @@ -11,5 +11,5 @@ class DeleteAction(UpdateAction): See: https://schema.org/DeleteAction Model depth: 4 """ - type_: str = Field(default="DeleteAction", alias='@type', constant=True) + type_: str = Field(default="DeleteAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/DeliveryChargeSpecification.py b/pydantic_schemaorg/DeliveryChargeSpecification.py index f3f4516f..ecd21a58 100644 --- a/pydantic_schemaorg/DeliveryChargeSpecification.py +++ b/pydantic_schemaorg/DeliveryChargeSpecification.py @@ -14,7 +14,7 @@ class DeliveryChargeSpecification(PriceSpecification): See: https://schema.org/DeliveryChargeSpecification Model depth: 5 """ - type_: str = Field(default="DeliveryChargeSpecification", alias='@type', constant=True) + type_: str = Field(default="DeliveryChargeSpecification", alias='@type', const=True) areaServed: Optional[Union[List[Union[str, 'Text', 'Place', 'AdministrativeArea', 'GeoShape']], str, 'Text', 'Place', 'AdministrativeArea', 'GeoShape']] = Field( default=None, description="The geographic area where a service or offered item is provided.", @@ -30,7 +30,7 @@ class DeliveryChargeSpecification(PriceSpecification): description="The delivery method(s) to which the delivery charge or payment charge specification" "applies.", ) - ineligibleRegion: Optional[Union[List[Union[str, 'Text', 'GeoShape', 'Place']], str, 'Text', 'GeoShape', 'Place']] = Field( + ineligibleRegion: Optional[Union[List[Union[str, 'Text', 'Place', 'GeoShape']], str, 'Text', 'Place', 'GeoShape']] = Field( default=None, description="The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for" "the geo-political region(s) for which the offer or delivery charge specification is" diff --git a/pydantic_schemaorg/DeliveryEvent.py b/pydantic_schemaorg/DeliveryEvent.py index 51ae4058..53b33637 100644 --- a/pydantic_schemaorg/DeliveryEvent.py +++ b/pydantic_schemaorg/DeliveryEvent.py @@ -15,7 +15,7 @@ class DeliveryEvent(Event): See: https://schema.org/DeliveryEvent Model depth: 3 """ - type_: str = Field(default="DeliveryEvent", alias='@type', constant=True) + type_: str = Field(default="DeliveryEvent", alias='@type', const=True) accessCode: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Password, PIN, or access code needed for delivery (e.g. from a locker).", diff --git a/pydantic_schemaorg/DeliveryMethod.py b/pydantic_schemaorg/DeliveryMethod.py index 126632f0..891bbc86 100644 --- a/pydantic_schemaorg/DeliveryMethod.py +++ b/pydantic_schemaorg/DeliveryMethod.py @@ -18,5 +18,5 @@ class DeliveryMethod(Enumeration): See: https://schema.org/DeliveryMethod Model depth: 4 """ - type_: str = Field(default="DeliveryMethod", alias='@type', constant=True) + type_: str = Field(default="DeliveryMethod", alias='@type', const=True) diff --git a/pydantic_schemaorg/DeliveryTimeSettings.py b/pydantic_schemaorg/DeliveryTimeSettings.py index 8b4f2e6f..e9f3bdb0 100644 --- a/pydantic_schemaorg/DeliveryTimeSettings.py +++ b/pydantic_schemaorg/DeliveryTimeSettings.py @@ -18,7 +18,7 @@ class DeliveryTimeSettings(StructuredValue): See: https://schema.org/DeliveryTimeSettings Model depth: 4 """ - type_: str = Field(default="DeliveryTimeSettings", alias='@type', constant=True) + type_: str = Field(default="DeliveryTimeSettings", alias='@type', const=True) shippingDestination: Optional[Union[List[Union['DefinedRegion', str]], 'DefinedRegion', str]] = Field( default=None, description="indicates (possibly multiple) shipping destinations. These can be defined in several" diff --git a/pydantic_schemaorg/Demand.py b/pydantic_schemaorg/Demand.py index fc3c85c8..3d70cb0d 100644 --- a/pydantic_schemaorg/Demand.py +++ b/pydantic_schemaorg/Demand.py @@ -17,7 +17,7 @@ class Demand(Intangible): See: https://schema.org/Demand Model depth: 3 """ - type_: str = Field(default="Demand", alias='@type', constant=True) + type_: str = Field(default="Demand", alias='@type', const=True) includesObject: Optional[Union[List[Union['TypeAndQuantityNode', str]], 'TypeAndQuantityNode', str]] = Field( default=None, description="This links to a node or nodes indicating the exact quantity of the products included in" @@ -88,7 +88,7 @@ class Demand(Intangible): "the geo-political region(s) for which the offer or delivery charge specification is" "valid. See also [[ineligibleRegion]].", ) - seller: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + seller: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="An entity which offers (sells / leases / lends / loans) the services / goods. A seller may" "also be a provider.", @@ -121,7 +121,7 @@ class Demand(Intangible): default=None, description="The date when the item becomes valid.", ) - itemOffered: Optional[Union[List[Union['Service', 'AggregateOffer', 'CreativeWork', 'MenuItem', 'Event', 'Trip', 'Product', str]], 'Service', 'AggregateOffer', 'CreativeWork', 'MenuItem', 'Event', 'Trip', 'Product', str]] = Field( + itemOffered: Optional[Union[List[Union['Event', 'MenuItem', 'Trip', 'AggregateOffer', 'Product', 'Service', 'CreativeWork', str]], 'Event', 'MenuItem', 'Trip', 'AggregateOffer', 'Product', 'Service', 'CreativeWork', str]] = Field( default=None, description="An item being offered (or demanded). The transactional nature of the offer or demand" "is documented using [[businessFunction]], e.g. sell, lease etc. While several common" @@ -180,7 +180,7 @@ class Demand(Intangible): description="One or more detailed price specifications, indicating the unit price and delivery or" "payment charges.", ) - ineligibleRegion: Optional[Union[List[Union[str, 'Text', 'GeoShape', 'Place']], str, 'Text', 'GeoShape', 'Place']] = Field( + ineligibleRegion: Optional[Union[List[Union[str, 'Text', 'Place', 'GeoShape']], str, 'Text', 'Place', 'GeoShape']] = Field( default=None, description="The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for" "the geo-political region(s) for which the offer or delivery charge specification is" @@ -211,14 +211,14 @@ class Demand(Intangible): from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Time import Time from pydantic_schemaorg.Date import Date - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.WarrantyPromise import WarrantyPromise - from pydantic_schemaorg.Service import Service - from pydantic_schemaorg.AggregateOffer import AggregateOffer - from pydantic_schemaorg.CreativeWork import CreativeWork - from pydantic_schemaorg.MenuItem import MenuItem from pydantic_schemaorg.Event import Event + from pydantic_schemaorg.MenuItem import MenuItem from pydantic_schemaorg.Trip import Trip + from pydantic_schemaorg.AggregateOffer import AggregateOffer from pydantic_schemaorg.Product import Product + from pydantic_schemaorg.Service import Service + from pydantic_schemaorg.CreativeWork import CreativeWork from pydantic_schemaorg.OfferItemCondition import OfferItemCondition diff --git a/pydantic_schemaorg/DemoAlbum.py b/pydantic_schemaorg/DemoAlbum.py index 0109b50c..dcbbfdad 100644 --- a/pydantic_schemaorg/DemoAlbum.py +++ b/pydantic_schemaorg/DemoAlbum.py @@ -11,5 +11,5 @@ class DemoAlbum(MusicAlbumProductionType): See: https://schema.org/DemoAlbum Model depth: 5 """ - type_: str = Field(default="DemoAlbum", alias='@type', constant=True) + type_: str = Field(default="DemoAlbum", alias='@type', const=True) diff --git a/pydantic_schemaorg/Dentist.py b/pydantic_schemaorg/Dentist.py index d3602060..c12c71f3 100644 --- a/pydantic_schemaorg/Dentist.py +++ b/pydantic_schemaorg/Dentist.py @@ -13,5 +13,5 @@ class Dentist(MedicalBusiness, LocalBusiness, MedicalOrganization): See: https://schema.org/Dentist Model depth: 4 """ - type_: str = Field(default="Dentist", alias='@type', constant=True) + type_: str = Field(default="Dentist", alias='@type', const=True) diff --git a/pydantic_schemaorg/Dentistry.py b/pydantic_schemaorg/Dentistry.py index e4a68961..59489d75 100644 --- a/pydantic_schemaorg/Dentistry.py +++ b/pydantic_schemaorg/Dentistry.py @@ -11,5 +11,5 @@ class Dentistry(MedicalSpecialty): See: https://schema.org/Dentistry Model depth: 6 """ - type_: str = Field(default="Dentistry", alias='@type', constant=True) + type_: str = Field(default="Dentistry", alias='@type', const=True) diff --git a/pydantic_schemaorg/DepartAction.py b/pydantic_schemaorg/DepartAction.py index 17226c7e..6ab334a7 100644 --- a/pydantic_schemaorg/DepartAction.py +++ b/pydantic_schemaorg/DepartAction.py @@ -12,5 +12,5 @@ class DepartAction(MoveAction): See: https://schema.org/DepartAction Model depth: 4 """ - type_: str = Field(default="DepartAction", alias='@type', constant=True) + type_: str = Field(default="DepartAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/DepartmentStore.py b/pydantic_schemaorg/DepartmentStore.py index 7e89eef9..981e11eb 100644 --- a/pydantic_schemaorg/DepartmentStore.py +++ b/pydantic_schemaorg/DepartmentStore.py @@ -11,5 +11,5 @@ class DepartmentStore(Store): See: https://schema.org/DepartmentStore Model depth: 5 """ - type_: str = Field(default="DepartmentStore", alias='@type', constant=True) + type_: str = Field(default="DepartmentStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/DepositAccount.py b/pydantic_schemaorg/DepositAccount.py index ca776f01..ee80c54f 100644 --- a/pydantic_schemaorg/DepositAccount.py +++ b/pydantic_schemaorg/DepositAccount.py @@ -2,16 +2,16 @@ from pydantic import Field -from pydantic_schemaorg.BankAccount import BankAccount from pydantic_schemaorg.InvestmentOrDeposit import InvestmentOrDeposit +from pydantic_schemaorg.BankAccount import BankAccount -class DepositAccount(BankAccount, InvestmentOrDeposit): +class DepositAccount(InvestmentOrDeposit, BankAccount): """A type of Bank Account with a main purpose of depositing funds to gain interest or other" "benefits. See: https://schema.org/DepositAccount Model depth: 6 """ - type_: str = Field(default="DepositAccount", alias='@type', constant=True) + type_: str = Field(default="DepositAccount", alias='@type', const=True) diff --git a/pydantic_schemaorg/Dermatologic.py b/pydantic_schemaorg/Dermatologic.py index 010d6ccf..4c23ee62 100644 --- a/pydantic_schemaorg/Dermatologic.py +++ b/pydantic_schemaorg/Dermatologic.py @@ -11,5 +11,5 @@ class Dermatologic(MedicalSpecialty): See: https://schema.org/Dermatologic Model depth: 6 """ - type_: str = Field(default="Dermatologic", alias='@type', constant=True) + type_: str = Field(default="Dermatologic", alias='@type', const=True) diff --git a/pydantic_schemaorg/Dermatology.py b/pydantic_schemaorg/Dermatology.py index 1053d62a..2e2ff89b 100644 --- a/pydantic_schemaorg/Dermatology.py +++ b/pydantic_schemaorg/Dermatology.py @@ -13,5 +13,5 @@ class Dermatology(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Dermatology Model depth: 5 """ - type_: str = Field(default="Dermatology", alias='@type', constant=True) + type_: str = Field(default="Dermatology", alias='@type', const=True) diff --git a/pydantic_schemaorg/DiabeticDiet.py b/pydantic_schemaorg/DiabeticDiet.py index 94bc1103..048c944f 100644 --- a/pydantic_schemaorg/DiabeticDiet.py +++ b/pydantic_schemaorg/DiabeticDiet.py @@ -11,5 +11,5 @@ class DiabeticDiet(RestrictedDiet): See: https://schema.org/DiabeticDiet Model depth: 5 """ - type_: str = Field(default="DiabeticDiet", alias='@type', constant=True) + type_: str = Field(default="DiabeticDiet", alias='@type', const=True) diff --git a/pydantic_schemaorg/Diagnostic.py b/pydantic_schemaorg/Diagnostic.py index fd2f201f..1355fed8 100644 --- a/pydantic_schemaorg/Diagnostic.py +++ b/pydantic_schemaorg/Diagnostic.py @@ -11,5 +11,5 @@ class Diagnostic(MedicalDevicePurpose): See: https://schema.org/Diagnostic Model depth: 6 """ - type_: str = Field(default="Diagnostic", alias='@type', constant=True) + type_: str = Field(default="Diagnostic", alias='@type', const=True) diff --git a/pydantic_schemaorg/DiagnosticLab.py b/pydantic_schemaorg/DiagnosticLab.py index 5f330d8c..3d5ab14b 100644 --- a/pydantic_schemaorg/DiagnosticLab.py +++ b/pydantic_schemaorg/DiagnosticLab.py @@ -14,7 +14,7 @@ class DiagnosticLab(MedicalOrganization): See: https://schema.org/DiagnosticLab Model depth: 4 """ - type_: str = Field(default="DiagnosticLab", alias='@type', constant=True) + type_: str = Field(default="DiagnosticLab", alias='@type', const=True) availableTest: Optional[Union[List[Union['MedicalTest', str]], 'MedicalTest', str]] = Field( default=None, description="A diagnostic test or procedure offered by this lab.", diff --git a/pydantic_schemaorg/DiagnosticProcedure.py b/pydantic_schemaorg/DiagnosticProcedure.py index 41e59bfc..58f47f1c 100644 --- a/pydantic_schemaorg/DiagnosticProcedure.py +++ b/pydantic_schemaorg/DiagnosticProcedure.py @@ -12,5 +12,5 @@ class DiagnosticProcedure(MedicalProcedure): See: https://schema.org/DiagnosticProcedure Model depth: 4 """ - type_: str = Field(default="DiagnosticProcedure", alias='@type', constant=True) + type_: str = Field(default="DiagnosticProcedure", alias='@type', const=True) diff --git a/pydantic_schemaorg/Diet.py b/pydantic_schemaorg/Diet.py index 3fea330c..4a6310b8 100644 --- a/pydantic_schemaorg/Diet.py +++ b/pydantic_schemaorg/Diet.py @@ -16,12 +16,12 @@ class Diet(LifestyleModification, CreativeWork): See: https://schema.org/Diet Model depth: 3 """ - type_: str = Field(default="Diet", alias='@type', constant=True) + type_: str = Field(default="Diet", alias='@type', const=True) risks: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Specific physiologic risks associated to the diet plan.", ) - endorsers: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + endorsers: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="People or organizations that endorse the plan.", ) @@ -43,5 +43,5 @@ class Diet(LifestyleModification, CreativeWork): if TYPE_CHECKING: from pydantic_schemaorg.Text import Text - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization diff --git a/pydantic_schemaorg/DietNutrition.py b/pydantic_schemaorg/DietNutrition.py index 2addec6d..6302fc70 100644 --- a/pydantic_schemaorg/DietNutrition.py +++ b/pydantic_schemaorg/DietNutrition.py @@ -12,5 +12,5 @@ class DietNutrition(MedicalSpecialty, MedicalBusiness): See: https://schema.org/DietNutrition Model depth: 5 """ - type_: str = Field(default="DietNutrition", alias='@type', constant=True) + type_: str = Field(default="DietNutrition", alias='@type', const=True) diff --git a/pydantic_schemaorg/DietarySupplement.py b/pydantic_schemaorg/DietarySupplement.py index 5fbc16b5..7a824d15 100644 --- a/pydantic_schemaorg/DietarySupplement.py +++ b/pydantic_schemaorg/DietarySupplement.py @@ -17,7 +17,7 @@ class DietarySupplement(Substance): See: https://schema.org/DietarySupplement Model depth: 4 """ - type_: str = Field(default="DietarySupplement", alias='@type', constant=True) + type_: str = Field(default="DietarySupplement", alias='@type', const=True) safetyConsideration: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Any potential safety concern associated with the supplement. May include interactions" @@ -60,7 +60,7 @@ class DietarySupplement(Substance): description="The specific biochemical interaction through which this drug or supplement produces" "its pharmacological effect.", ) - legalStatus: Optional[Union[List[Union[str, 'Text', 'MedicalEnumeration', 'DrugLegalStatus']], str, 'Text', 'MedicalEnumeration', 'DrugLegalStatus']] = Field( + legalStatus: Optional[Union[List[Union[str, 'Text', 'DrugLegalStatus', 'MedicalEnumeration']], str, 'Text', 'DrugLegalStatus', 'MedicalEnumeration']] = Field( default=None, description="The drug or supplement's legal status, including any controlled substance schedules" "that apply.", @@ -76,6 +76,6 @@ class DietarySupplement(Substance): from pydantic_schemaorg.RecommendedDoseSchedule import RecommendedDoseSchedule from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.MaximumDoseSchedule import MaximumDoseSchedule - from pydantic_schemaorg.MedicalEnumeration import MedicalEnumeration from pydantic_schemaorg.DrugLegalStatus import DrugLegalStatus + from pydantic_schemaorg.MedicalEnumeration import MedicalEnumeration from pydantic_schemaorg.Boolean import Boolean diff --git a/pydantic_schemaorg/DigitalAudioTapeFormat.py b/pydantic_schemaorg/DigitalAudioTapeFormat.py index 07bcfd93..841c625f 100644 --- a/pydantic_schemaorg/DigitalAudioTapeFormat.py +++ b/pydantic_schemaorg/DigitalAudioTapeFormat.py @@ -11,5 +11,5 @@ class DigitalAudioTapeFormat(MusicReleaseFormatType): See: https://schema.org/DigitalAudioTapeFormat Model depth: 5 """ - type_: str = Field(default="DigitalAudioTapeFormat", alias='@type', constant=True) + type_: str = Field(default="DigitalAudioTapeFormat", alias='@type', const=True) diff --git a/pydantic_schemaorg/DigitalDocument.py b/pydantic_schemaorg/DigitalDocument.py index 082efa2d..56267941 100644 --- a/pydantic_schemaorg/DigitalDocument.py +++ b/pydantic_schemaorg/DigitalDocument.py @@ -14,7 +14,7 @@ class DigitalDocument(CreativeWork): See: https://schema.org/DigitalDocument Model depth: 3 """ - type_: str = Field(default="DigitalDocument", alias='@type', constant=True) + type_: str = Field(default="DigitalDocument", alias='@type', const=True) hasDigitalDocumentPermission: Optional[Union[List[Union['DigitalDocumentPermission', str]], 'DigitalDocumentPermission', str]] = Field( default=None, description="A permission related to the access to this document (e.g. permission to read or write" diff --git a/pydantic_schemaorg/DigitalDocumentPermission.py b/pydantic_schemaorg/DigitalDocumentPermission.py index a2652d4a..1b80f8dc 100644 --- a/pydantic_schemaorg/DigitalDocumentPermission.py +++ b/pydantic_schemaorg/DigitalDocumentPermission.py @@ -14,12 +14,12 @@ class DigitalDocumentPermission(Intangible): See: https://schema.org/DigitalDocumentPermission Model depth: 3 """ - type_: str = Field(default="DigitalDocumentPermission", alias='@type', constant=True) + type_: str = Field(default="DigitalDocumentPermission", alias='@type', const=True) permissionType: Optional[Union[List[Union['DigitalDocumentPermissionType', str]], 'DigitalDocumentPermissionType', str]] = Field( default=None, description="The type of permission granted the person, organization, or audience.", ) - grantee: Optional[Union[List[Union['Organization', 'Person', 'ContactPoint', 'Audience', str]], 'Organization', 'Person', 'ContactPoint', 'Audience', str]] = Field( + grantee: Optional[Union[List[Union['ContactPoint', 'Audience', 'Organization', 'Person', str]], 'ContactPoint', 'Audience', 'Organization', 'Person', str]] = Field( default=None, description="The person, organization, contact point, or audience that has been granted this permission.", ) @@ -27,7 +27,7 @@ class DigitalDocumentPermission(Intangible): if TYPE_CHECKING: from pydantic_schemaorg.DigitalDocumentPermissionType import DigitalDocumentPermissionType - from pydantic_schemaorg.Organization import Organization - from pydantic_schemaorg.Person import Person from pydantic_schemaorg.ContactPoint import ContactPoint from pydantic_schemaorg.Audience import Audience + from pydantic_schemaorg.Organization import Organization + from pydantic_schemaorg.Person import Person diff --git a/pydantic_schemaorg/DigitalDocumentPermissionType.py b/pydantic_schemaorg/DigitalDocumentPermissionType.py index 7d032d00..7630b7b4 100644 --- a/pydantic_schemaorg/DigitalDocumentPermissionType.py +++ b/pydantic_schemaorg/DigitalDocumentPermissionType.py @@ -11,5 +11,5 @@ class DigitalDocumentPermissionType(Enumeration): See: https://schema.org/DigitalDocumentPermissionType Model depth: 4 """ - type_: str = Field(default="DigitalDocumentPermissionType", alias='@type', constant=True) + type_: str = Field(default="DigitalDocumentPermissionType", alias='@type', const=True) diff --git a/pydantic_schemaorg/DigitalFormat.py b/pydantic_schemaorg/DigitalFormat.py index c329b7af..70bffed8 100644 --- a/pydantic_schemaorg/DigitalFormat.py +++ b/pydantic_schemaorg/DigitalFormat.py @@ -11,5 +11,5 @@ class DigitalFormat(MusicReleaseFormatType): See: https://schema.org/DigitalFormat Model depth: 5 """ - type_: str = Field(default="DigitalFormat", alias='@type', constant=True) + type_: str = Field(default="DigitalFormat", alias='@type', const=True) diff --git a/pydantic_schemaorg/DisabilitySupport.py b/pydantic_schemaorg/DisabilitySupport.py index fae4eadb..a3a2ecd2 100644 --- a/pydantic_schemaorg/DisabilitySupport.py +++ b/pydantic_schemaorg/DisabilitySupport.py @@ -11,5 +11,5 @@ class DisabilitySupport(GovernmentBenefitsType): See: https://schema.org/DisabilitySupport Model depth: 5 """ - type_: str = Field(default="DisabilitySupport", alias='@type', constant=True) + type_: str = Field(default="DisabilitySupport", alias='@type', const=True) diff --git a/pydantic_schemaorg/DisagreeAction.py b/pydantic_schemaorg/DisagreeAction.py index 410130d8..9b687494 100644 --- a/pydantic_schemaorg/DisagreeAction.py +++ b/pydantic_schemaorg/DisagreeAction.py @@ -12,5 +12,5 @@ class DisagreeAction(ReactAction): See: https://schema.org/DisagreeAction Model depth: 5 """ - type_: str = Field(default="DisagreeAction", alias='@type', constant=True) + type_: str = Field(default="DisagreeAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Discontinued.py b/pydantic_schemaorg/Discontinued.py index 15f12ed3..1f5a7cd0 100644 --- a/pydantic_schemaorg/Discontinued.py +++ b/pydantic_schemaorg/Discontinued.py @@ -11,5 +11,5 @@ class Discontinued(ItemAvailability): See: https://schema.org/Discontinued Model depth: 5 """ - type_: str = Field(default="Discontinued", alias='@type', constant=True) + type_: str = Field(default="Discontinued", alias='@type', const=True) diff --git a/pydantic_schemaorg/DiscoverAction.py b/pydantic_schemaorg/DiscoverAction.py index b9e74d22..ab35895e 100644 --- a/pydantic_schemaorg/DiscoverAction.py +++ b/pydantic_schemaorg/DiscoverAction.py @@ -11,5 +11,5 @@ class DiscoverAction(FindAction): See: https://schema.org/DiscoverAction Model depth: 4 """ - type_: str = Field(default="DiscoverAction", alias='@type', constant=True) + type_: str = Field(default="DiscoverAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/DiscussionForumPosting.py b/pydantic_schemaorg/DiscussionForumPosting.py index b1344d01..7390b6ca 100644 --- a/pydantic_schemaorg/DiscussionForumPosting.py +++ b/pydantic_schemaorg/DiscussionForumPosting.py @@ -11,5 +11,5 @@ class DiscussionForumPosting(SocialMediaPosting): See: https://schema.org/DiscussionForumPosting Model depth: 5 """ - type_: str = Field(default="DiscussionForumPosting", alias='@type', constant=True) + type_: str = Field(default="DiscussionForumPosting", alias='@type', const=True) diff --git a/pydantic_schemaorg/DislikeAction.py b/pydantic_schemaorg/DislikeAction.py index 91285692..75b3afec 100644 --- a/pydantic_schemaorg/DislikeAction.py +++ b/pydantic_schemaorg/DislikeAction.py @@ -12,5 +12,5 @@ class DislikeAction(ReactAction): See: https://schema.org/DislikeAction Model depth: 5 """ - type_: str = Field(default="DislikeAction", alias='@type', constant=True) + type_: str = Field(default="DislikeAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Distance.py b/pydantic_schemaorg/Distance.py index 77bd82f2..158618b1 100644 --- a/pydantic_schemaorg/Distance.py +++ b/pydantic_schemaorg/Distance.py @@ -12,5 +12,5 @@ class Distance(Quantity): See: https://schema.org/Distance Model depth: 4 """ - type_: str = Field(default="Distance", alias='@type', constant=True) + type_: str = Field(default="Distance", alias='@type', const=True) diff --git a/pydantic_schemaorg/DistanceFee.py b/pydantic_schemaorg/DistanceFee.py index 3ea79287..e344f307 100644 --- a/pydantic_schemaorg/DistanceFee.py +++ b/pydantic_schemaorg/DistanceFee.py @@ -12,5 +12,5 @@ class DistanceFee(PriceComponentTypeEnumeration): See: https://schema.org/DistanceFee Model depth: 5 """ - type_: str = Field(default="DistanceFee", alias='@type', constant=True) + type_: str = Field(default="DistanceFee", alias='@type', const=True) diff --git a/pydantic_schemaorg/Distillery.py b/pydantic_schemaorg/Distillery.py index f418a7df..7f81d227 100644 --- a/pydantic_schemaorg/Distillery.py +++ b/pydantic_schemaorg/Distillery.py @@ -11,5 +11,5 @@ class Distillery(FoodEstablishment): See: https://schema.org/Distillery Model depth: 5 """ - type_: str = Field(default="Distillery", alias='@type', constant=True) + type_: str = Field(default="Distillery", alias='@type', const=True) diff --git a/pydantic_schemaorg/DonateAction.py b/pydantic_schemaorg/DonateAction.py index 854018ec..d4b6f5ff 100644 --- a/pydantic_schemaorg/DonateAction.py +++ b/pydantic_schemaorg/DonateAction.py @@ -15,15 +15,15 @@ class DonateAction(TradeAction): See: https://schema.org/DonateAction Model depth: 4 """ - type_: str = Field(default="DonateAction", alias='@type', constant=True) - recipient: Optional[Union[List[Union['Organization', 'Person', 'ContactPoint', 'Audience', str]], 'Organization', 'Person', 'ContactPoint', 'Audience', str]] = Field( + type_: str = Field(default="DonateAction", alias='@type', const=True) + recipient: Optional[Union[List[Union['ContactPoint', 'Audience', 'Organization', 'Person', str]], 'ContactPoint', 'Audience', 'Organization', 'Person', str]] = Field( default=None, description="A sub property of participant. The participant who is at the receiving end of the action.", ) if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization - from pydantic_schemaorg.Person import Person from pydantic_schemaorg.ContactPoint import ContactPoint from pydantic_schemaorg.Audience import Audience + from pydantic_schemaorg.Organization import Organization + from pydantic_schemaorg.Person import Person diff --git a/pydantic_schemaorg/DoseSchedule.py b/pydantic_schemaorg/DoseSchedule.py index 2b32344f..0d8e6822 100644 --- a/pydantic_schemaorg/DoseSchedule.py +++ b/pydantic_schemaorg/DoseSchedule.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -15,13 +15,13 @@ class DoseSchedule(MedicalIntangible): See: https://schema.org/DoseSchedule Model depth: 4 """ - type_: str = Field(default="DoseSchedule", alias='@type', constant=True) + type_: str = Field(default="DoseSchedule", alias='@type', const=True) targetPopulation: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Characteristics of the population for which this is intended, or which typically uses" "it, e.g. 'adults'.", ) - doseValue: Optional[Union[List[Union[int, float, 'Number', 'QualitativeValue', str]], int, float, 'Number', 'QualitativeValue', str]] = Field( + doseValue: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QualitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QualitativeValue', str]] = Field( default=None, description="The value of the dose, e.g. 500.", ) diff --git a/pydantic_schemaorg/DoubleBlindedTrial.py b/pydantic_schemaorg/DoubleBlindedTrial.py index 3bec9af8..3285c26a 100644 --- a/pydantic_schemaorg/DoubleBlindedTrial.py +++ b/pydantic_schemaorg/DoubleBlindedTrial.py @@ -12,5 +12,5 @@ class DoubleBlindedTrial(MedicalTrialDesign): See: https://schema.org/DoubleBlindedTrial Model depth: 6 """ - type_: str = Field(default="DoubleBlindedTrial", alias='@type', constant=True) + type_: str = Field(default="DoubleBlindedTrial", alias='@type', const=True) diff --git a/pydantic_schemaorg/DownloadAction.py b/pydantic_schemaorg/DownloadAction.py index 658c77a9..b6cbd1ba 100644 --- a/pydantic_schemaorg/DownloadAction.py +++ b/pydantic_schemaorg/DownloadAction.py @@ -11,5 +11,5 @@ class DownloadAction(TransferAction): See: https://schema.org/DownloadAction Model depth: 4 """ - type_: str = Field(default="DownloadAction", alias='@type', constant=True) + type_: str = Field(default="DownloadAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Downpayment.py b/pydantic_schemaorg/Downpayment.py index 04135524..3a3e7626 100644 --- a/pydantic_schemaorg/Downpayment.py +++ b/pydantic_schemaorg/Downpayment.py @@ -12,5 +12,5 @@ class Downpayment(PriceComponentTypeEnumeration): See: https://schema.org/Downpayment Model depth: 5 """ - type_: str = Field(default="Downpayment", alias='@type', constant=True) + type_: str = Field(default="Downpayment", alias='@type', const=True) diff --git a/pydantic_schemaorg/DrawAction.py b/pydantic_schemaorg/DrawAction.py index af6da08d..8e6538d4 100644 --- a/pydantic_schemaorg/DrawAction.py +++ b/pydantic_schemaorg/DrawAction.py @@ -12,5 +12,5 @@ class DrawAction(CreateAction): See: https://schema.org/DrawAction Model depth: 4 """ - type_: str = Field(default="DrawAction", alias='@type', constant=True) + type_: str = Field(default="DrawAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Drawing.py b/pydantic_schemaorg/Drawing.py index 8fcf4b3a..41b03347 100644 --- a/pydantic_schemaorg/Drawing.py +++ b/pydantic_schemaorg/Drawing.py @@ -11,5 +11,5 @@ class Drawing(CreativeWork): See: https://schema.org/Drawing Model depth: 3 """ - type_: str = Field(default="Drawing", alias='@type', constant=True) + type_: str = Field(default="Drawing", alias='@type', const=True) diff --git a/pydantic_schemaorg/DrinkAction.py b/pydantic_schemaorg/DrinkAction.py index 37fea215..9b4ec105 100644 --- a/pydantic_schemaorg/DrinkAction.py +++ b/pydantic_schemaorg/DrinkAction.py @@ -11,5 +11,5 @@ class DrinkAction(ConsumeAction): See: https://schema.org/DrinkAction Model depth: 4 """ - type_: str = Field(default="DrinkAction", alias='@type', constant=True) + type_: str = Field(default="DrinkAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/DriveWheelConfigurationValue.py b/pydantic_schemaorg/DriveWheelConfigurationValue.py index c8d4ea64..1036465d 100644 --- a/pydantic_schemaorg/DriveWheelConfigurationValue.py +++ b/pydantic_schemaorg/DriveWheelConfigurationValue.py @@ -11,5 +11,5 @@ class DriveWheelConfigurationValue(QualitativeValue): See: https://schema.org/DriveWheelConfigurationValue Model depth: 5 """ - type_: str = Field(default="DriveWheelConfigurationValue", alias='@type', constant=True) + type_: str = Field(default="DriveWheelConfigurationValue", alias='@type', const=True) diff --git a/pydantic_schemaorg/DrivingSchoolVehicleUsage.py b/pydantic_schemaorg/DrivingSchoolVehicleUsage.py index 037e28dd..9ec965df 100644 --- a/pydantic_schemaorg/DrivingSchoolVehicleUsage.py +++ b/pydantic_schemaorg/DrivingSchoolVehicleUsage.py @@ -11,5 +11,5 @@ class DrivingSchoolVehicleUsage(CarUsageType): See: https://schema.org/DrivingSchoolVehicleUsage Model depth: 5 """ - type_: str = Field(default="DrivingSchoolVehicleUsage", alias='@type', constant=True) + type_: str = Field(default="DrivingSchoolVehicleUsage", alias='@type', const=True) diff --git a/pydantic_schemaorg/Drug.py b/pydantic_schemaorg/Drug.py index 8ef22b51..4efcb440 100644 --- a/pydantic_schemaorg/Drug.py +++ b/pydantic_schemaorg/Drug.py @@ -17,7 +17,7 @@ class Drug(Substance): See: https://schema.org/Drug Model depth: 4 """ - type_: str = Field(default="Drug", alias='@type', constant=True) + type_: str = Field(default="Drug", alias='@type', const=True) prescribingInfo: Optional[Union[List[Union[AnyUrl, 'URL', str]], AnyUrl, 'URL', str]] = Field( default=None, description="Link to prescribing information for the drug.", @@ -144,7 +144,7 @@ class Drug(Substance): description="The specific biochemical interaction through which this drug or supplement produces" "its pharmacological effect.", ) - legalStatus: Optional[Union[List[Union[str, 'Text', 'MedicalEnumeration', 'DrugLegalStatus']], str, 'Text', 'MedicalEnumeration', 'DrugLegalStatus']] = Field( + legalStatus: Optional[Union[List[Union[str, 'Text', 'DrugLegalStatus', 'MedicalEnumeration']], str, 'Text', 'DrugLegalStatus', 'MedicalEnumeration']] = Field( default=None, description="The drug or supplement's legal status, including any controlled substance schedules" "that apply.", @@ -171,5 +171,5 @@ class Drug(Substance): from pydantic_schemaorg.DrugPrescriptionStatus import DrugPrescriptionStatus from pydantic_schemaorg.HealthInsurancePlan import HealthInsurancePlan from pydantic_schemaorg.DrugClass import DrugClass - from pydantic_schemaorg.MedicalEnumeration import MedicalEnumeration from pydantic_schemaorg.DrugLegalStatus import DrugLegalStatus + from pydantic_schemaorg.MedicalEnumeration import MedicalEnumeration diff --git a/pydantic_schemaorg/DrugClass.py b/pydantic_schemaorg/DrugClass.py index 9ade5e24..01ba9c3a 100644 --- a/pydantic_schemaorg/DrugClass.py +++ b/pydantic_schemaorg/DrugClass.py @@ -15,7 +15,7 @@ class DrugClass(MedicalEntity): See: https://schema.org/DrugClass Model depth: 3 """ - type_: str = Field(default="DrugClass", alias='@type', constant=True) + type_: str = Field(default="DrugClass", alias='@type', const=True) drug: Optional[Union[List[Union['Drug', str]], 'Drug', str]] = Field( default=None, description="Specifying a drug or medicine used in a medication procedure.", diff --git a/pydantic_schemaorg/DrugCost.py b/pydantic_schemaorg/DrugCost.py index e157043b..989037e4 100644 --- a/pydantic_schemaorg/DrugCost.py +++ b/pydantic_schemaorg/DrugCost.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -20,7 +20,7 @@ class DrugCost(MedicalEntity): See: https://schema.org/DrugCost Model depth: 3 """ - type_: str = Field(default="DrugCost", alias='@type', constant=True) + type_: str = Field(default="DrugCost", alias='@type', const=True) costCategory: Optional[Union[List[Union['DrugCostCategory', str]], 'DrugCostCategory', str]] = Field( default=None, description="The category of cost, such as wholesale, retail, reimbursement cap, etc.", @@ -37,7 +37,7 @@ class DrugCost(MedicalEntity): default=None, description="The currency (in 3-letter of the drug cost. See: http://en.wikipedia.org/wiki/ISO_4217.", ) - costPerUnit: Optional[Union[List[Union[int, float, 'Number', str, 'Text', 'QualitativeValue']], int, float, 'Number', str, 'Text', 'QualitativeValue']] = Field( + costPerUnit: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text', 'QualitativeValue']], StrictInt, StrictFloat, 'Number', str, 'Text', 'QualitativeValue']] = Field( default=None, description="The cost per unit of the drug.", ) diff --git a/pydantic_schemaorg/DrugCostCategory.py b/pydantic_schemaorg/DrugCostCategory.py index 20c66270..b80649d5 100644 --- a/pydantic_schemaorg/DrugCostCategory.py +++ b/pydantic_schemaorg/DrugCostCategory.py @@ -11,5 +11,5 @@ class DrugCostCategory(MedicalEnumeration): See: https://schema.org/DrugCostCategory Model depth: 5 """ - type_: str = Field(default="DrugCostCategory", alias='@type', constant=True) + type_: str = Field(default="DrugCostCategory", alias='@type', const=True) diff --git a/pydantic_schemaorg/DrugLegalStatus.py b/pydantic_schemaorg/DrugLegalStatus.py index 7bd12544..ac201fe6 100644 --- a/pydantic_schemaorg/DrugLegalStatus.py +++ b/pydantic_schemaorg/DrugLegalStatus.py @@ -14,7 +14,7 @@ class DrugLegalStatus(MedicalIntangible): See: https://schema.org/DrugLegalStatus Model depth: 4 """ - type_: str = Field(default="DrugLegalStatus", alias='@type', constant=True) + type_: str = Field(default="DrugLegalStatus", alias='@type', const=True) applicableLocation: Optional[Union[List[Union['AdministrativeArea', str]], 'AdministrativeArea', str]] = Field( default=None, description="The location in which the status applies.", diff --git a/pydantic_schemaorg/DrugPregnancyCategory.py b/pydantic_schemaorg/DrugPregnancyCategory.py index e154351b..17bcf039 100644 --- a/pydantic_schemaorg/DrugPregnancyCategory.py +++ b/pydantic_schemaorg/DrugPregnancyCategory.py @@ -12,5 +12,5 @@ class DrugPregnancyCategory(MedicalEnumeration): See: https://schema.org/DrugPregnancyCategory Model depth: 5 """ - type_: str = Field(default="DrugPregnancyCategory", alias='@type', constant=True) + type_: str = Field(default="DrugPregnancyCategory", alias='@type', const=True) diff --git a/pydantic_schemaorg/DrugPrescriptionStatus.py b/pydantic_schemaorg/DrugPrescriptionStatus.py index eb150929..fb0de916 100644 --- a/pydantic_schemaorg/DrugPrescriptionStatus.py +++ b/pydantic_schemaorg/DrugPrescriptionStatus.py @@ -11,5 +11,5 @@ class DrugPrescriptionStatus(MedicalEnumeration): See: https://schema.org/DrugPrescriptionStatus Model depth: 5 """ - type_: str = Field(default="DrugPrescriptionStatus", alias='@type', constant=True) + type_: str = Field(default="DrugPrescriptionStatus", alias='@type', const=True) diff --git a/pydantic_schemaorg/DrugStrength.py b/pydantic_schemaorg/DrugStrength.py index e87070f8..87d8d40b 100644 --- a/pydantic_schemaorg/DrugStrength.py +++ b/pydantic_schemaorg/DrugStrength.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -15,7 +15,7 @@ class DrugStrength(MedicalIntangible): See: https://schema.org/DrugStrength Model depth: 4 """ - type_: str = Field(default="DrugStrength", alias='@type', constant=True) + type_: str = Field(default="DrugStrength", alias='@type', const=True) activeIngredient: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="An active ingredient, typically chemical compounds and/or biologic substances.", @@ -28,7 +28,7 @@ class DrugStrength(MedicalIntangible): default=None, description="The units of an active ingredient's strength, e.g. mg.", ) - strengthValue: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + strengthValue: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The value of an active ingredient's strength, e.g. 325.", ) diff --git a/pydantic_schemaorg/DryCleaningOrLaundry.py b/pydantic_schemaorg/DryCleaningOrLaundry.py index 6298e3f5..2723b8e8 100644 --- a/pydantic_schemaorg/DryCleaningOrLaundry.py +++ b/pydantic_schemaorg/DryCleaningOrLaundry.py @@ -11,5 +11,5 @@ class DryCleaningOrLaundry(LocalBusiness): See: https://schema.org/DryCleaningOrLaundry Model depth: 4 """ - type_: str = Field(default="DryCleaningOrLaundry", alias='@type', constant=True) + type_: str = Field(default="DryCleaningOrLaundry", alias='@type', const=True) diff --git a/pydantic_schemaorg/Duration.py b/pydantic_schemaorg/Duration.py index 254fa9d5..1946dcf4 100644 --- a/pydantic_schemaorg/Duration.py +++ b/pydantic_schemaorg/Duration.py @@ -11,5 +11,5 @@ class Duration(Quantity): See: https://schema.org/Duration Model depth: 4 """ - type_: str = Field(default="Duration", alias='@type', constant=True) + type_: str = Field(default="Duration", alias='@type', const=True) diff --git a/pydantic_schemaorg/EBook.py b/pydantic_schemaorg/EBook.py index d75b5528..4490f7e2 100644 --- a/pydantic_schemaorg/EBook.py +++ b/pydantic_schemaorg/EBook.py @@ -11,5 +11,5 @@ class EBook(BookFormatType): See: https://schema.org/EBook Model depth: 5 """ - type_: str = Field(default="EBook", alias='@type', constant=True) + type_: str = Field(default="EBook", alias='@type', const=True) diff --git a/pydantic_schemaorg/EPRelease.py b/pydantic_schemaorg/EPRelease.py index 6311cbdf..d64276ec 100644 --- a/pydantic_schemaorg/EPRelease.py +++ b/pydantic_schemaorg/EPRelease.py @@ -11,5 +11,5 @@ class EPRelease(MusicAlbumReleaseType): See: https://schema.org/EPRelease Model depth: 5 """ - type_: str = Field(default="EPRelease", alias='@type', constant=True) + type_: str = Field(default="EPRelease", alias='@type', const=True) diff --git a/pydantic_schemaorg/EUEnergyEfficiencyCategoryA.py b/pydantic_schemaorg/EUEnergyEfficiencyCategoryA.py index ca9719b8..7827d746 100644 --- a/pydantic_schemaorg/EUEnergyEfficiencyCategoryA.py +++ b/pydantic_schemaorg/EUEnergyEfficiencyCategoryA.py @@ -11,5 +11,5 @@ class EUEnergyEfficiencyCategoryA(EUEnergyEfficiencyEnumeration): See: https://schema.org/EUEnergyEfficiencyCategoryA Model depth: 6 """ - type_: str = Field(default="EUEnergyEfficiencyCategoryA", alias='@type', constant=True) + type_: str = Field(default="EUEnergyEfficiencyCategoryA", alias='@type', const=True) diff --git a/pydantic_schemaorg/EUEnergyEfficiencyCategoryA1Plus.py b/pydantic_schemaorg/EUEnergyEfficiencyCategoryA1Plus.py index 6ccfd78f..f20d4df4 100644 --- a/pydantic_schemaorg/EUEnergyEfficiencyCategoryA1Plus.py +++ b/pydantic_schemaorg/EUEnergyEfficiencyCategoryA1Plus.py @@ -11,5 +11,5 @@ class EUEnergyEfficiencyCategoryA1Plus(EUEnergyEfficiencyEnumeration): See: https://schema.org/EUEnergyEfficiencyCategoryA1Plus Model depth: 6 """ - type_: str = Field(default="EUEnergyEfficiencyCategoryA1Plus", alias='@type', constant=True) + type_: str = Field(default="EUEnergyEfficiencyCategoryA1Plus", alias='@type', const=True) diff --git a/pydantic_schemaorg/EUEnergyEfficiencyCategoryA2Plus.py b/pydantic_schemaorg/EUEnergyEfficiencyCategoryA2Plus.py index bfeeefe0..cc379893 100644 --- a/pydantic_schemaorg/EUEnergyEfficiencyCategoryA2Plus.py +++ b/pydantic_schemaorg/EUEnergyEfficiencyCategoryA2Plus.py @@ -11,5 +11,5 @@ class EUEnergyEfficiencyCategoryA2Plus(EUEnergyEfficiencyEnumeration): See: https://schema.org/EUEnergyEfficiencyCategoryA2Plus Model depth: 6 """ - type_: str = Field(default="EUEnergyEfficiencyCategoryA2Plus", alias='@type', constant=True) + type_: str = Field(default="EUEnergyEfficiencyCategoryA2Plus", alias='@type', const=True) diff --git a/pydantic_schemaorg/EUEnergyEfficiencyCategoryA3Plus.py b/pydantic_schemaorg/EUEnergyEfficiencyCategoryA3Plus.py index 38f650b9..5634a6ac 100644 --- a/pydantic_schemaorg/EUEnergyEfficiencyCategoryA3Plus.py +++ b/pydantic_schemaorg/EUEnergyEfficiencyCategoryA3Plus.py @@ -11,5 +11,5 @@ class EUEnergyEfficiencyCategoryA3Plus(EUEnergyEfficiencyEnumeration): See: https://schema.org/EUEnergyEfficiencyCategoryA3Plus Model depth: 6 """ - type_: str = Field(default="EUEnergyEfficiencyCategoryA3Plus", alias='@type', constant=True) + type_: str = Field(default="EUEnergyEfficiencyCategoryA3Plus", alias='@type', const=True) diff --git a/pydantic_schemaorg/EUEnergyEfficiencyCategoryB.py b/pydantic_schemaorg/EUEnergyEfficiencyCategoryB.py index e1824974..c705f47c 100644 --- a/pydantic_schemaorg/EUEnergyEfficiencyCategoryB.py +++ b/pydantic_schemaorg/EUEnergyEfficiencyCategoryB.py @@ -11,5 +11,5 @@ class EUEnergyEfficiencyCategoryB(EUEnergyEfficiencyEnumeration): See: https://schema.org/EUEnergyEfficiencyCategoryB Model depth: 6 """ - type_: str = Field(default="EUEnergyEfficiencyCategoryB", alias='@type', constant=True) + type_: str = Field(default="EUEnergyEfficiencyCategoryB", alias='@type', const=True) diff --git a/pydantic_schemaorg/EUEnergyEfficiencyCategoryC.py b/pydantic_schemaorg/EUEnergyEfficiencyCategoryC.py index 01156b97..aa477efa 100644 --- a/pydantic_schemaorg/EUEnergyEfficiencyCategoryC.py +++ b/pydantic_schemaorg/EUEnergyEfficiencyCategoryC.py @@ -11,5 +11,5 @@ class EUEnergyEfficiencyCategoryC(EUEnergyEfficiencyEnumeration): See: https://schema.org/EUEnergyEfficiencyCategoryC Model depth: 6 """ - type_: str = Field(default="EUEnergyEfficiencyCategoryC", alias='@type', constant=True) + type_: str = Field(default="EUEnergyEfficiencyCategoryC", alias='@type', const=True) diff --git a/pydantic_schemaorg/EUEnergyEfficiencyCategoryD.py b/pydantic_schemaorg/EUEnergyEfficiencyCategoryD.py index 9cc2bc82..33860f01 100644 --- a/pydantic_schemaorg/EUEnergyEfficiencyCategoryD.py +++ b/pydantic_schemaorg/EUEnergyEfficiencyCategoryD.py @@ -11,5 +11,5 @@ class EUEnergyEfficiencyCategoryD(EUEnergyEfficiencyEnumeration): See: https://schema.org/EUEnergyEfficiencyCategoryD Model depth: 6 """ - type_: str = Field(default="EUEnergyEfficiencyCategoryD", alias='@type', constant=True) + type_: str = Field(default="EUEnergyEfficiencyCategoryD", alias='@type', const=True) diff --git a/pydantic_schemaorg/EUEnergyEfficiencyCategoryE.py b/pydantic_schemaorg/EUEnergyEfficiencyCategoryE.py index 8062ca62..543355ba 100644 --- a/pydantic_schemaorg/EUEnergyEfficiencyCategoryE.py +++ b/pydantic_schemaorg/EUEnergyEfficiencyCategoryE.py @@ -11,5 +11,5 @@ class EUEnergyEfficiencyCategoryE(EUEnergyEfficiencyEnumeration): See: https://schema.org/EUEnergyEfficiencyCategoryE Model depth: 6 """ - type_: str = Field(default="EUEnergyEfficiencyCategoryE", alias='@type', constant=True) + type_: str = Field(default="EUEnergyEfficiencyCategoryE", alias='@type', const=True) diff --git a/pydantic_schemaorg/EUEnergyEfficiencyCategoryF.py b/pydantic_schemaorg/EUEnergyEfficiencyCategoryF.py index 533b6705..dcc18b6b 100644 --- a/pydantic_schemaorg/EUEnergyEfficiencyCategoryF.py +++ b/pydantic_schemaorg/EUEnergyEfficiencyCategoryF.py @@ -11,5 +11,5 @@ class EUEnergyEfficiencyCategoryF(EUEnergyEfficiencyEnumeration): See: https://schema.org/EUEnergyEfficiencyCategoryF Model depth: 6 """ - type_: str = Field(default="EUEnergyEfficiencyCategoryF", alias='@type', constant=True) + type_: str = Field(default="EUEnergyEfficiencyCategoryF", alias='@type', const=True) diff --git a/pydantic_schemaorg/EUEnergyEfficiencyCategoryG.py b/pydantic_schemaorg/EUEnergyEfficiencyCategoryG.py index 7e917a6c..585db493 100644 --- a/pydantic_schemaorg/EUEnergyEfficiencyCategoryG.py +++ b/pydantic_schemaorg/EUEnergyEfficiencyCategoryG.py @@ -11,5 +11,5 @@ class EUEnergyEfficiencyCategoryG(EUEnergyEfficiencyEnumeration): See: https://schema.org/EUEnergyEfficiencyCategoryG Model depth: 6 """ - type_: str = Field(default="EUEnergyEfficiencyCategoryG", alias='@type', constant=True) + type_: str = Field(default="EUEnergyEfficiencyCategoryG", alias='@type', const=True) diff --git a/pydantic_schemaorg/EUEnergyEfficiencyEnumeration.py b/pydantic_schemaorg/EUEnergyEfficiencyEnumeration.py index 7d71eff9..8cceb96a 100644 --- a/pydantic_schemaorg/EUEnergyEfficiencyEnumeration.py +++ b/pydantic_schemaorg/EUEnergyEfficiencyEnumeration.py @@ -12,5 +12,5 @@ class EUEnergyEfficiencyEnumeration(EnergyEfficiencyEnumeration): See: https://schema.org/EUEnergyEfficiencyEnumeration Model depth: 5 """ - type_: str = Field(default="EUEnergyEfficiencyEnumeration", alias='@type', constant=True) + type_: str = Field(default="EUEnergyEfficiencyEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/Ear.py b/pydantic_schemaorg/Ear.py index 09b8339f..6f7a126b 100644 --- a/pydantic_schemaorg/Ear.py +++ b/pydantic_schemaorg/Ear.py @@ -11,5 +11,5 @@ class Ear(PhysicalExam): See: https://schema.org/Ear Model depth: 5 """ - type_: str = Field(default="Ear", alias='@type', constant=True) + type_: str = Field(default="Ear", alias='@type', const=True) diff --git a/pydantic_schemaorg/EatAction.py b/pydantic_schemaorg/EatAction.py index 2389f785..f36c1d0c 100644 --- a/pydantic_schemaorg/EatAction.py +++ b/pydantic_schemaorg/EatAction.py @@ -11,5 +11,5 @@ class EatAction(ConsumeAction): See: https://schema.org/EatAction Model depth: 4 """ - type_: str = Field(default="EatAction", alias='@type', constant=True) + type_: str = Field(default="EatAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/EditedOrCroppedContent.py b/pydantic_schemaorg/EditedOrCroppedContent.py index c09aba93..94dee252 100644 --- a/pydantic_schemaorg/EditedOrCroppedContent.py +++ b/pydantic_schemaorg/EditedOrCroppedContent.py @@ -21,5 +21,5 @@ class EditedOrCroppedContent(MediaManipulationRatingEnumeration): See: https://schema.org/EditedOrCroppedContent Model depth: 5 """ - type_: str = Field(default="EditedOrCroppedContent", alias='@type', constant=True) + type_: str = Field(default="EditedOrCroppedContent", alias='@type', const=True) diff --git a/pydantic_schemaorg/EducationEvent.py b/pydantic_schemaorg/EducationEvent.py index 6b9fb8ed..d7934f1c 100644 --- a/pydantic_schemaorg/EducationEvent.py +++ b/pydantic_schemaorg/EducationEvent.py @@ -15,7 +15,7 @@ class EducationEvent(Event): See: https://schema.org/EducationEvent Model depth: 3 """ - type_: str = Field(default="EducationEvent", alias='@type', constant=True) + type_: str = Field(default="EducationEvent", alias='@type', const=True) teaches: Optional[Union[List[Union[str, 'Text', 'DefinedTerm']], str, 'Text', 'DefinedTerm']] = Field( default=None, description="The item being described is intended to help a person learn the competency or learning" diff --git a/pydantic_schemaorg/EducationalAudience.py b/pydantic_schemaorg/EducationalAudience.py index 918bddee..a8efa24c 100644 --- a/pydantic_schemaorg/EducationalAudience.py +++ b/pydantic_schemaorg/EducationalAudience.py @@ -14,7 +14,7 @@ class EducationalAudience(Audience): See: https://schema.org/EducationalAudience Model depth: 4 """ - type_: str = Field(default="EducationalAudience", alias='@type', constant=True) + type_: str = Field(default="EducationalAudience", alias='@type', const=True) educationalRole: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="An educationalRole of an EducationalAudience.", diff --git a/pydantic_schemaorg/EducationalOccupationalCredential.py b/pydantic_schemaorg/EducationalOccupationalCredential.py index d7d58774..7d279e33 100644 --- a/pydantic_schemaorg/EducationalOccupationalCredential.py +++ b/pydantic_schemaorg/EducationalOccupationalCredential.py @@ -17,7 +17,7 @@ class EducationalOccupationalCredential(CreativeWork): See: https://schema.org/EducationalOccupationalCredential Model depth: 3 """ - type_: str = Field(default="EducationalOccupationalCredential", alias='@type', constant=True) + type_: str = Field(default="EducationalOccupationalCredential", alias='@type', const=True) validFor: Optional[Union[List[Union['Duration', str]], 'Duration', str]] = Field( default=None, description="The duration of validity of a permit or similar thing.", diff --git a/pydantic_schemaorg/EducationalOccupationalProgram.py b/pydantic_schemaorg/EducationalOccupationalProgram.py index 39213a7c..8917c020 100644 --- a/pydantic_schemaorg/EducationalOccupationalProgram.py +++ b/pydantic_schemaorg/EducationalOccupationalProgram.py @@ -3,8 +3,7 @@ from typing import List, Optional, Union from datetime import date, datetime -from pydantic import AnyUrl -from decimal import Decimal +from pydantic import AnyUrl, StrictInt, StrictFloat from pydantic import Field @@ -21,7 +20,7 @@ class EducationalOccupationalProgram(Intangible): See: https://schema.org/EducationalOccupationalProgram Model depth: 3 """ - type_: str = Field(default="EducationalOccupationalProgram", alias='@type', constant=True) + type_: str = Field(default="EducationalOccupationalProgram", alias='@type', const=True) timeToComplete: Optional[Union[List[Union['Duration', str]], 'Duration', str]] = Field( default=None, description="The expected length of time to complete the program if attending full-time.", @@ -45,7 +44,7 @@ class EducationalOccupationalProgram(Intangible): description="The date at which the program begins collecting applications for the next enrollment" "cycle.", ) - programPrerequisites: Optional[Union[List[Union[str, 'Text', 'Course', 'EducationalOccupationalCredential', 'AlignmentObject']], str, 'Text', 'Course', 'EducationalOccupationalCredential', 'AlignmentObject']] = Field( + programPrerequisites: Optional[Union[List[Union[str, 'Text', 'AlignmentObject', 'EducationalOccupationalCredential', 'Course']], str, 'Text', 'AlignmentObject', 'EducationalOccupationalCredential', 'Course']] = Field( default=None, description="Prerequisites for enrolling in the program.", ) @@ -101,7 +100,7 @@ class EducationalOccupationalProgram(Intangible): default=None, description="The time of day the program normally runs. For example, \"evenings\".", ) - termsPerYear: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + termsPerYear: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The number of times terms of study are offered per year. Semesters and quarters are common" "units for term. For example, if the student can only take 2 semesters for the program in" @@ -125,7 +124,7 @@ class EducationalOccupationalProgram(Intangible): description="A financial aid type or program which students may use to pay for tuition or fees associated" "with the program.", ) - provider: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + provider: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The service provider, service operator, or service performer; the goods producer." "Another party (a seller) may offer those services or goods on behalf of the provider." @@ -157,15 +156,15 @@ class EducationalOccupationalProgram(Intangible): from pydantic_schemaorg.StructuredValue import StructuredValue from pydantic_schemaorg.Date import Date from pydantic_schemaorg.Text import Text - from pydantic_schemaorg.Course import Course - from pydantic_schemaorg.EducationalOccupationalCredential import EducationalOccupationalCredential from pydantic_schemaorg.AlignmentObject import AlignmentObject + from pydantic_schemaorg.EducationalOccupationalCredential import EducationalOccupationalCredential + from pydantic_schemaorg.Course import Course from pydantic_schemaorg.URL import URL from pydantic_schemaorg.DefinedTerm import DefinedTerm from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.MonetaryAmountDistribution import MonetaryAmountDistribution from pydantic_schemaorg.Number import Number from pydantic_schemaorg.DayOfWeek import DayOfWeek - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.CategoryCode import CategoryCode diff --git a/pydantic_schemaorg/EducationalOrganization.py b/pydantic_schemaorg/EducationalOrganization.py index 35844474..13081e5f 100644 --- a/pydantic_schemaorg/EducationalOrganization.py +++ b/pydantic_schemaorg/EducationalOrganization.py @@ -15,7 +15,7 @@ class EducationalOrganization(CivicStructure, Organization): See: https://schema.org/EducationalOrganization Model depth: 3 """ - type_: str = Field(default="EducationalOrganization", alias='@type', constant=True) + type_: str = Field(default="EducationalOrganization", alias='@type', const=True) alumni: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="Alumni of an organization.", diff --git a/pydantic_schemaorg/EffectivenessHealthAspect.py b/pydantic_schemaorg/EffectivenessHealthAspect.py index 96e032e2..1ccb2c2e 100644 --- a/pydantic_schemaorg/EffectivenessHealthAspect.py +++ b/pydantic_schemaorg/EffectivenessHealthAspect.py @@ -11,5 +11,5 @@ class EffectivenessHealthAspect(HealthAspectEnumeration): See: https://schema.org/EffectivenessHealthAspect Model depth: 5 """ - type_: str = Field(default="EffectivenessHealthAspect", alias='@type', constant=True) + type_: str = Field(default="EffectivenessHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/Electrician.py b/pydantic_schemaorg/Electrician.py index bd0d3afa..a764e1db 100644 --- a/pydantic_schemaorg/Electrician.py +++ b/pydantic_schemaorg/Electrician.py @@ -11,5 +11,5 @@ class Electrician(HomeAndConstructionBusiness): See: https://schema.org/Electrician Model depth: 5 """ - type_: str = Field(default="Electrician", alias='@type', constant=True) + type_: str = Field(default="Electrician", alias='@type', const=True) diff --git a/pydantic_schemaorg/ElectronicsStore.py b/pydantic_schemaorg/ElectronicsStore.py index a0d6cdcf..144d143e 100644 --- a/pydantic_schemaorg/ElectronicsStore.py +++ b/pydantic_schemaorg/ElectronicsStore.py @@ -11,5 +11,5 @@ class ElectronicsStore(Store): See: https://schema.org/ElectronicsStore Model depth: 5 """ - type_: str = Field(default="ElectronicsStore", alias='@type', constant=True) + type_: str = Field(default="ElectronicsStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/ElementarySchool.py b/pydantic_schemaorg/ElementarySchool.py index 876030ea..e1a51fcf 100644 --- a/pydantic_schemaorg/ElementarySchool.py +++ b/pydantic_schemaorg/ElementarySchool.py @@ -11,5 +11,5 @@ class ElementarySchool(EducationalOrganization): See: https://schema.org/ElementarySchool Model depth: 4 """ - type_: str = Field(default="ElementarySchool", alias='@type', constant=True) + type_: str = Field(default="ElementarySchool", alias='@type', const=True) diff --git a/pydantic_schemaorg/EmailMessage.py b/pydantic_schemaorg/EmailMessage.py index 799aed05..71e9574b 100644 --- a/pydantic_schemaorg/EmailMessage.py +++ b/pydantic_schemaorg/EmailMessage.py @@ -11,5 +11,5 @@ class EmailMessage(Message): See: https://schema.org/EmailMessage Model depth: 4 """ - type_: str = Field(default="EmailMessage", alias='@type', constant=True) + type_: str = Field(default="EmailMessage", alias='@type', const=True) diff --git a/pydantic_schemaorg/Embassy.py b/pydantic_schemaorg/Embassy.py index 4c4edb2d..8aa9e621 100644 --- a/pydantic_schemaorg/Embassy.py +++ b/pydantic_schemaorg/Embassy.py @@ -11,5 +11,5 @@ class Embassy(GovernmentBuilding): See: https://schema.org/Embassy Model depth: 5 """ - type_: str = Field(default="Embassy", alias='@type', constant=True) + type_: str = Field(default="Embassy", alias='@type', const=True) diff --git a/pydantic_schemaorg/Emergency.py b/pydantic_schemaorg/Emergency.py index 8e4aae86..ed5b6037 100644 --- a/pydantic_schemaorg/Emergency.py +++ b/pydantic_schemaorg/Emergency.py @@ -13,5 +13,5 @@ class Emergency(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Emergency Model depth: 5 """ - type_: str = Field(default="Emergency", alias='@type', constant=True) + type_: str = Field(default="Emergency", alias='@type', const=True) diff --git a/pydantic_schemaorg/EmergencyService.py b/pydantic_schemaorg/EmergencyService.py index 11b76476..67aae541 100644 --- a/pydantic_schemaorg/EmergencyService.py +++ b/pydantic_schemaorg/EmergencyService.py @@ -11,5 +11,5 @@ class EmergencyService(LocalBusiness): See: https://schema.org/EmergencyService Model depth: 4 """ - type_: str = Field(default="EmergencyService", alias='@type', constant=True) + type_: str = Field(default="EmergencyService", alias='@type', const=True) diff --git a/pydantic_schemaorg/EmployeeRole.py b/pydantic_schemaorg/EmployeeRole.py index 81b043eb..aaa6fd2a 100644 --- a/pydantic_schemaorg/EmployeeRole.py +++ b/pydantic_schemaorg/EmployeeRole.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -15,13 +15,13 @@ class EmployeeRole(OrganizationRole): See: https://schema.org/EmployeeRole Model depth: 5 """ - type_: str = Field(default="EmployeeRole", alias='@type', constant=True) + type_: str = Field(default="EmployeeRole", alias='@type', const=True) salaryCurrency: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The currency (coded using [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) )" "used for the main salary information in this job posting or for this employee.", ) - baseSalary: Optional[Union[List[Union[int, float, 'Number', 'PriceSpecification', 'MonetaryAmount', str]], int, float, 'Number', 'PriceSpecification', 'MonetaryAmount', str]] = Field( + baseSalary: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'MonetaryAmount', 'PriceSpecification', str]], StrictInt, StrictFloat, 'Number', 'MonetaryAmount', 'PriceSpecification', str]] = Field( default=None, description="The base salary of the job or of an employee in an EmployeeRole.", ) @@ -30,5 +30,5 @@ class EmployeeRole(OrganizationRole): if TYPE_CHECKING: from pydantic_schemaorg.Text import Text from pydantic_schemaorg.Number import Number - from pydantic_schemaorg.PriceSpecification import PriceSpecification from pydantic_schemaorg.MonetaryAmount import MonetaryAmount + from pydantic_schemaorg.PriceSpecification import PriceSpecification diff --git a/pydantic_schemaorg/EmployerAggregateRating.py b/pydantic_schemaorg/EmployerAggregateRating.py index 50f6c53e..8239fec8 100644 --- a/pydantic_schemaorg/EmployerAggregateRating.py +++ b/pydantic_schemaorg/EmployerAggregateRating.py @@ -11,5 +11,5 @@ class EmployerAggregateRating(AggregateRating): See: https://schema.org/EmployerAggregateRating Model depth: 5 """ - type_: str = Field(default="EmployerAggregateRating", alias='@type', constant=True) + type_: str = Field(default="EmployerAggregateRating", alias='@type', const=True) diff --git a/pydantic_schemaorg/EmployerReview.py b/pydantic_schemaorg/EmployerReview.py index c326d497..4e599f5e 100644 --- a/pydantic_schemaorg/EmployerReview.py +++ b/pydantic_schemaorg/EmployerReview.py @@ -12,5 +12,5 @@ class EmployerReview(Review): See: https://schema.org/EmployerReview Model depth: 4 """ - type_: str = Field(default="EmployerReview", alias='@type', constant=True) + type_: str = Field(default="EmployerReview", alias='@type', const=True) diff --git a/pydantic_schemaorg/EmploymentAgency.py b/pydantic_schemaorg/EmploymentAgency.py index 0c37782e..2e0957f6 100644 --- a/pydantic_schemaorg/EmploymentAgency.py +++ b/pydantic_schemaorg/EmploymentAgency.py @@ -11,5 +11,5 @@ class EmploymentAgency(LocalBusiness): See: https://schema.org/EmploymentAgency Model depth: 4 """ - type_: str = Field(default="EmploymentAgency", alias='@type', constant=True) + type_: str = Field(default="EmploymentAgency", alias='@type', const=True) diff --git a/pydantic_schemaorg/Endocrine.py b/pydantic_schemaorg/Endocrine.py index 52bdd239..5037c0e1 100644 --- a/pydantic_schemaorg/Endocrine.py +++ b/pydantic_schemaorg/Endocrine.py @@ -12,5 +12,5 @@ class Endocrine(MedicalSpecialty): See: https://schema.org/Endocrine Model depth: 6 """ - type_: str = Field(default="Endocrine", alias='@type', constant=True) + type_: str = Field(default="Endocrine", alias='@type', const=True) diff --git a/pydantic_schemaorg/EndorseAction.py b/pydantic_schemaorg/EndorseAction.py index 7ac60e5e..6a7a5b2f 100644 --- a/pydantic_schemaorg/EndorseAction.py +++ b/pydantic_schemaorg/EndorseAction.py @@ -14,13 +14,13 @@ class EndorseAction(ReactAction): See: https://schema.org/EndorseAction Model depth: 5 """ - type_: str = Field(default="EndorseAction", alias='@type', constant=True) - endorsee: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + type_: str = Field(default="EndorseAction", alias='@type', const=True) + endorsee: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A sub property of participant. The person/organization being supported.", ) if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization diff --git a/pydantic_schemaorg/EndorsementRating.py b/pydantic_schemaorg/EndorsementRating.py index d363df5b..a4f47175 100644 --- a/pydantic_schemaorg/EndorsementRating.py +++ b/pydantic_schemaorg/EndorsementRating.py @@ -19,5 +19,5 @@ class EndorsementRating(Rating): See: https://schema.org/EndorsementRating Model depth: 4 """ - type_: str = Field(default="EndorsementRating", alias='@type', constant=True) + type_: str = Field(default="EndorsementRating", alias='@type', const=True) diff --git a/pydantic_schemaorg/Energy.py b/pydantic_schemaorg/Energy.py index f7d6b9eb..74aa9282 100644 --- a/pydantic_schemaorg/Energy.py +++ b/pydantic_schemaorg/Energy.py @@ -12,5 +12,5 @@ class Energy(Quantity): See: https://schema.org/Energy Model depth: 4 """ - type_: str = Field(default="Energy", alias='@type', constant=True) + type_: str = Field(default="Energy", alias='@type', const=True) diff --git a/pydantic_schemaorg/EnergyConsumptionDetails.py b/pydantic_schemaorg/EnergyConsumptionDetails.py index 688f8a3c..2ee09365 100644 --- a/pydantic_schemaorg/EnergyConsumptionDetails.py +++ b/pydantic_schemaorg/EnergyConsumptionDetails.py @@ -18,7 +18,7 @@ class EnergyConsumptionDetails(Intangible): See: https://schema.org/EnergyConsumptionDetails Model depth: 3 """ - type_: str = Field(default="EnergyConsumptionDetails", alias='@type', constant=True) + type_: str = Field(default="EnergyConsumptionDetails", alias='@type', const=True) energyEfficiencyScaleMax: Optional[Union[List[Union['EUEnergyEfficiencyEnumeration', str]], 'EUEnergyEfficiencyEnumeration', str]] = Field( default=None, description="Specifies the most energy efficient class on the regulated EU energy consumption scale" diff --git a/pydantic_schemaorg/EnergyEfficiencyEnumeration.py b/pydantic_schemaorg/EnergyEfficiencyEnumeration.py index 1184b0ce..6287c4f9 100644 --- a/pydantic_schemaorg/EnergyEfficiencyEnumeration.py +++ b/pydantic_schemaorg/EnergyEfficiencyEnumeration.py @@ -12,5 +12,5 @@ class EnergyEfficiencyEnumeration(Enumeration): See: https://schema.org/EnergyEfficiencyEnumeration Model depth: 4 """ - type_: str = Field(default="EnergyEfficiencyEnumeration", alias='@type', constant=True) + type_: str = Field(default="EnergyEfficiencyEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/EnergyStarCertified.py b/pydantic_schemaorg/EnergyStarCertified.py index b64aa0a8..411772ba 100644 --- a/pydantic_schemaorg/EnergyStarCertified.py +++ b/pydantic_schemaorg/EnergyStarCertified.py @@ -11,5 +11,5 @@ class EnergyStarCertified(EnergyStarEnergyEfficiencyEnumeration): See: https://schema.org/EnergyStarCertified Model depth: 6 """ - type_: str = Field(default="EnergyStarCertified", alias='@type', constant=True) + type_: str = Field(default="EnergyStarCertified", alias='@type', const=True) diff --git a/pydantic_schemaorg/EnergyStarEnergyEfficiencyEnumeration.py b/pydantic_schemaorg/EnergyStarEnergyEfficiencyEnumeration.py index 54e4d3a9..47ab59fc 100644 --- a/pydantic_schemaorg/EnergyStarEnergyEfficiencyEnumeration.py +++ b/pydantic_schemaorg/EnergyStarEnergyEfficiencyEnumeration.py @@ -11,5 +11,5 @@ class EnergyStarEnergyEfficiencyEnumeration(EnergyEfficiencyEnumeration): See: https://schema.org/EnergyStarEnergyEfficiencyEnumeration Model depth: 5 """ - type_: str = Field(default="EnergyStarEnergyEfficiencyEnumeration", alias='@type', constant=True) + type_: str = Field(default="EnergyStarEnergyEfficiencyEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/EngineSpecification.py b/pydantic_schemaorg/EngineSpecification.py index 93cbeb78..8abc3231 100644 --- a/pydantic_schemaorg/EngineSpecification.py +++ b/pydantic_schemaorg/EngineSpecification.py @@ -16,7 +16,7 @@ class EngineSpecification(StructuredValue): See: https://schema.org/EngineSpecification Model depth: 4 """ - type_: str = Field(default="EngineSpecification", alias='@type', constant=True) + type_: str = Field(default="EngineSpecification", alias='@type', const=True) torque: Optional[Union[List[Union['QuantitativeValue', str]], 'QuantitativeValue', str]] = Field( default=None, description="The torque (turning force) of the vehicle's engine. Typical unit code(s): NU for newton" diff --git a/pydantic_schemaorg/EnrollingByInvitation.py b/pydantic_schemaorg/EnrollingByInvitation.py index a474fca9..638d4553 100644 --- a/pydantic_schemaorg/EnrollingByInvitation.py +++ b/pydantic_schemaorg/EnrollingByInvitation.py @@ -11,5 +11,5 @@ class EnrollingByInvitation(MedicalStudyStatus): See: https://schema.org/EnrollingByInvitation Model depth: 6 """ - type_: str = Field(default="EnrollingByInvitation", alias='@type', constant=True) + type_: str = Field(default="EnrollingByInvitation", alias='@type', const=True) diff --git a/pydantic_schemaorg/EntertainmentBusiness.py b/pydantic_schemaorg/EntertainmentBusiness.py index 42e23459..542ad153 100644 --- a/pydantic_schemaorg/EntertainmentBusiness.py +++ b/pydantic_schemaorg/EntertainmentBusiness.py @@ -11,5 +11,5 @@ class EntertainmentBusiness(LocalBusiness): See: https://schema.org/EntertainmentBusiness Model depth: 4 """ - type_: str = Field(default="EntertainmentBusiness", alias='@type', constant=True) + type_: str = Field(default="EntertainmentBusiness", alias='@type', const=True) diff --git a/pydantic_schemaorg/EntryPoint.py b/pydantic_schemaorg/EntryPoint.py index 725ce916..a0954951 100644 --- a/pydantic_schemaorg/EntryPoint.py +++ b/pydantic_schemaorg/EntryPoint.py @@ -15,7 +15,7 @@ class EntryPoint(Intangible): See: https://schema.org/EntryPoint Model depth: 3 """ - type_: str = Field(default="EntryPoint", alias='@type', constant=True) + type_: str = Field(default="EntryPoint", alias='@type', const=True) contentType: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The supported content type(s) for an EntryPoint response.", diff --git a/pydantic_schemaorg/Enumeration.py b/pydantic_schemaorg/Enumeration.py index ca7e97d6..fa38d265 100644 --- a/pydantic_schemaorg/Enumeration.py +++ b/pydantic_schemaorg/Enumeration.py @@ -14,7 +14,7 @@ class Enumeration(Intangible): See: https://schema.org/Enumeration Model depth: 3 """ - type_: str = Field(default="Enumeration", alias='@type', constant=True) + type_: str = Field(default="Enumeration", alias='@type', const=True) supersededBy: Optional[Union[List[Union['Property', 'Enumeration', 'Class', str]], 'Property', 'Enumeration', 'Class', str]] = Field( default=None, description="Relates a term (i.e. a property, class or enumeration) to one that supersedes it.", diff --git a/pydantic_schemaorg/Episode.py b/pydantic_schemaorg/Episode.py index 829be219..1ca2e25a 100644 --- a/pydantic_schemaorg/Episode.py +++ b/pydantic_schemaorg/Episode.py @@ -14,7 +14,7 @@ class Episode(CreativeWork): See: https://schema.org/Episode Model depth: 3 """ - type_: str = Field(default="Episode", alias='@type', constant=True) + type_: str = Field(default="Episode", alias='@type', const=True) partOfSeason: Optional[Union[List[Union['CreativeWorkSeason', str]], 'CreativeWorkSeason', str]] = Field( default=None, description="The season to which this episode belongs.", diff --git a/pydantic_schemaorg/Event.py b/pydantic_schemaorg/Event.py index d5ef8a89..5dd18dbe 100644 --- a/pydantic_schemaorg/Event.py +++ b/pydantic_schemaorg/Event.py @@ -18,7 +18,7 @@ class Event(Thing): See: https://schema.org/Event Model depth: 2 """ - type_: str = Field(default="Event", alias='@type', constant=True) + type_: str = Field(default="Event", alias='@type', const=True) subEvent: Optional[Union[List[Union['Event', str]], 'Event', str]] = Field( default=None, description="An Event that is part of this event. For example, a conference event includes many presentations," @@ -45,7 +45,7 @@ class Event(Thing): default=None, description="The typical expected age range, e.g. '7-9', '11-'.", ) - funder: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + funder: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A person or organization that supports (sponsors) something through some kind of financial" "contribution.", @@ -58,11 +58,11 @@ class Event(Thing): default=None, description="The overall rating, based on a collection of reviews or ratings, of the item.", ) - attendees: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + attendees: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A person attending the event.", ) - composer: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + composer: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The person or organization who wrote a composition, or who is the composer of a work performed" "at some event.", @@ -71,7 +71,7 @@ class Event(Thing): default=None, description="The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).", ) - translator: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + translator: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="Organization or person who adapts a creative work to different languages, regional" "differences and technical requirements of a target market, or that translates during" @@ -89,7 +89,7 @@ class Event(Thing): description="A director of e.g. tv, radio, movie, video gaming etc. content, or of an event. Directors" "can be associated with individual items or with a series, episode, clip.", ) - location: Optional[Union[List[Union[str, 'Text', 'Place', 'VirtualLocation', 'PostalAddress']], str, 'Text', 'Place', 'VirtualLocation', 'PostalAddress']] = Field( + location: Optional[Union[List[Union[str, 'Text', 'PostalAddress', 'Place', 'VirtualLocation']], str, 'Text', 'PostalAddress', 'Place', 'VirtualLocation']] = Field( default=None, description="The location of, for example, where an event is happening, where an organization is located," "or where an action takes place.", @@ -108,7 +108,7 @@ class Event(Thing): default=None, description="The number of attendee places for an event that remain unallocated.", ) - attendee: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + attendee: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A person or organization attending the event.", ) @@ -120,12 +120,12 @@ class Event(Thing): default=None, description="An intended audience, i.e. a group for whom something was created.", ) - sponsor: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + sponsor: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A person or organization that supports a thing through a pledge, promise, or financial" "contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.", ) - organizer: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + organizer: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="An organizer of an Event.", ) @@ -157,7 +157,7 @@ class Event(Thing): default=None, description="The CreativeWork that captured all or part of this Event.", ) - performers: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + performers: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The main performer or performers of the event—for example, a presenter, musician," "or actor.", @@ -177,7 +177,7 @@ class Event(Thing): "codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also" "[[availableLanguage]].", ) - performer: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + performer: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A performer at the event—for example, a presenter, musician, musical group" "or actor.", @@ -203,7 +203,7 @@ class Event(Thing): "any ambiguity for clients using the data. The property might have repeated values to" "specify different schedules, e.g. for different months or seasons.", ) - contributor: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + contributor: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A secondary contributor to the CreativeWork or Event.", ) @@ -220,15 +220,15 @@ class Event(Thing): from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Time import Time from pydantic_schemaorg.Text import Text - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Integer import Integer from pydantic_schemaorg.AggregateRating import AggregateRating from pydantic_schemaorg.Duration import Duration from pydantic_schemaorg.Date import Date + from pydantic_schemaorg.PostalAddress import PostalAddress from pydantic_schemaorg.Place import Place from pydantic_schemaorg.VirtualLocation import VirtualLocation - from pydantic_schemaorg.PostalAddress import PostalAddress from pydantic_schemaorg.EventStatusType import EventStatusType from pydantic_schemaorg.Audience import Audience from pydantic_schemaorg.CreativeWork import CreativeWork diff --git a/pydantic_schemaorg/EventAttendanceModeEnumeration.py b/pydantic_schemaorg/EventAttendanceModeEnumeration.py index 88712664..e4d59cff 100644 --- a/pydantic_schemaorg/EventAttendanceModeEnumeration.py +++ b/pydantic_schemaorg/EventAttendanceModeEnumeration.py @@ -12,5 +12,5 @@ class EventAttendanceModeEnumeration(Enumeration): See: https://schema.org/EventAttendanceModeEnumeration Model depth: 4 """ - type_: str = Field(default="EventAttendanceModeEnumeration", alias='@type', constant=True) + type_: str = Field(default="EventAttendanceModeEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/EventCancelled.py b/pydantic_schemaorg/EventCancelled.py index c06000d9..904c786a 100644 --- a/pydantic_schemaorg/EventCancelled.py +++ b/pydantic_schemaorg/EventCancelled.py @@ -13,5 +13,5 @@ class EventCancelled(EventStatusType): See: https://schema.org/EventCancelled Model depth: 6 """ - type_: str = Field(default="EventCancelled", alias='@type', constant=True) + type_: str = Field(default="EventCancelled", alias='@type', const=True) diff --git a/pydantic_schemaorg/EventMovedOnline.py b/pydantic_schemaorg/EventMovedOnline.py index 8d01dd04..54b7d7aa 100644 --- a/pydantic_schemaorg/EventMovedOnline.py +++ b/pydantic_schemaorg/EventMovedOnline.py @@ -12,5 +12,5 @@ class EventMovedOnline(EventStatusType): See: https://schema.org/EventMovedOnline Model depth: 6 """ - type_: str = Field(default="EventMovedOnline", alias='@type', constant=True) + type_: str = Field(default="EventMovedOnline", alias='@type', const=True) diff --git a/pydantic_schemaorg/EventPostponed.py b/pydantic_schemaorg/EventPostponed.py index 65d1b15f..003c8a56 100644 --- a/pydantic_schemaorg/EventPostponed.py +++ b/pydantic_schemaorg/EventPostponed.py @@ -12,5 +12,5 @@ class EventPostponed(EventStatusType): See: https://schema.org/EventPostponed Model depth: 6 """ - type_: str = Field(default="EventPostponed", alias='@type', constant=True) + type_: str = Field(default="EventPostponed", alias='@type', const=True) diff --git a/pydantic_schemaorg/EventRescheduled.py b/pydantic_schemaorg/EventRescheduled.py index 9542b29a..5b359062 100644 --- a/pydantic_schemaorg/EventRescheduled.py +++ b/pydantic_schemaorg/EventRescheduled.py @@ -13,5 +13,5 @@ class EventRescheduled(EventStatusType): See: https://schema.org/EventRescheduled Model depth: 6 """ - type_: str = Field(default="EventRescheduled", alias='@type', constant=True) + type_: str = Field(default="EventRescheduled", alias='@type', const=True) diff --git a/pydantic_schemaorg/EventReservation.py b/pydantic_schemaorg/EventReservation.py index e9350ad3..d00bf803 100644 --- a/pydantic_schemaorg/EventReservation.py +++ b/pydantic_schemaorg/EventReservation.py @@ -13,5 +13,5 @@ class EventReservation(Reservation): See: https://schema.org/EventReservation Model depth: 4 """ - type_: str = Field(default="EventReservation", alias='@type', constant=True) + type_: str = Field(default="EventReservation", alias='@type', const=True) diff --git a/pydantic_schemaorg/EventScheduled.py b/pydantic_schemaorg/EventScheduled.py index c23f671b..951a376f 100644 --- a/pydantic_schemaorg/EventScheduled.py +++ b/pydantic_schemaorg/EventScheduled.py @@ -12,5 +12,5 @@ class EventScheduled(EventStatusType): See: https://schema.org/EventScheduled Model depth: 6 """ - type_: str = Field(default="EventScheduled", alias='@type', constant=True) + type_: str = Field(default="EventScheduled", alias='@type', const=True) diff --git a/pydantic_schemaorg/EventSeries.py b/pydantic_schemaorg/EventSeries.py index fe077e5a..4ed243da 100644 --- a/pydantic_schemaorg/EventSeries.py +++ b/pydantic_schemaorg/EventSeries.py @@ -24,5 +24,5 @@ class EventSeries(Series, Event): See: https://schema.org/EventSeries Model depth: 3 """ - type_: str = Field(default="EventSeries", alias='@type', constant=True) + type_: str = Field(default="EventSeries", alias='@type', const=True) diff --git a/pydantic_schemaorg/EventStatusType.py b/pydantic_schemaorg/EventStatusType.py index 4ce28c37..2c55670a 100644 --- a/pydantic_schemaorg/EventStatusType.py +++ b/pydantic_schemaorg/EventStatusType.py @@ -12,5 +12,5 @@ class EventStatusType(StatusEnumeration): See: https://schema.org/EventStatusType Model depth: 5 """ - type_: str = Field(default="EventStatusType", alias='@type', constant=True) + type_: str = Field(default="EventStatusType", alias='@type', const=True) diff --git a/pydantic_schemaorg/EventVenue.py b/pydantic_schemaorg/EventVenue.py index ce758db9..3a33655e 100644 --- a/pydantic_schemaorg/EventVenue.py +++ b/pydantic_schemaorg/EventVenue.py @@ -11,5 +11,5 @@ class EventVenue(CivicStructure): See: https://schema.org/EventVenue Model depth: 4 """ - type_: str = Field(default="EventVenue", alias='@type', constant=True) + type_: str = Field(default="EventVenue", alias='@type', const=True) diff --git a/pydantic_schemaorg/EvidenceLevelA.py b/pydantic_schemaorg/EvidenceLevelA.py index 245578ae..7d003ab6 100644 --- a/pydantic_schemaorg/EvidenceLevelA.py +++ b/pydantic_schemaorg/EvidenceLevelA.py @@ -11,5 +11,5 @@ class EvidenceLevelA(MedicalEvidenceLevel): See: https://schema.org/EvidenceLevelA Model depth: 6 """ - type_: str = Field(default="EvidenceLevelA", alias='@type', constant=True) + type_: str = Field(default="EvidenceLevelA", alias='@type', const=True) diff --git a/pydantic_schemaorg/EvidenceLevelB.py b/pydantic_schemaorg/EvidenceLevelB.py index a05ea724..77c28ec6 100644 --- a/pydantic_schemaorg/EvidenceLevelB.py +++ b/pydantic_schemaorg/EvidenceLevelB.py @@ -11,5 +11,5 @@ class EvidenceLevelB(MedicalEvidenceLevel): See: https://schema.org/EvidenceLevelB Model depth: 6 """ - type_: str = Field(default="EvidenceLevelB", alias='@type', constant=True) + type_: str = Field(default="EvidenceLevelB", alias='@type', const=True) diff --git a/pydantic_schemaorg/EvidenceLevelC.py b/pydantic_schemaorg/EvidenceLevelC.py index d35302f0..9d936fcb 100644 --- a/pydantic_schemaorg/EvidenceLevelC.py +++ b/pydantic_schemaorg/EvidenceLevelC.py @@ -11,5 +11,5 @@ class EvidenceLevelC(MedicalEvidenceLevel): See: https://schema.org/EvidenceLevelC Model depth: 6 """ - type_: str = Field(default="EvidenceLevelC", alias='@type', constant=True) + type_: str = Field(default="EvidenceLevelC", alias='@type', const=True) diff --git a/pydantic_schemaorg/ExchangeRateSpecification.py b/pydantic_schemaorg/ExchangeRateSpecification.py index 8577bdb3..7dd6938c 100644 --- a/pydantic_schemaorg/ExchangeRateSpecification.py +++ b/pydantic_schemaorg/ExchangeRateSpecification.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -15,8 +15,8 @@ class ExchangeRateSpecification(StructuredValue): See: https://schema.org/ExchangeRateSpecification Model depth: 4 """ - type_: str = Field(default="ExchangeRateSpecification", alias='@type', constant=True) - exchangeRateSpread: Optional[Union[List[Union[int, float, 'Number', 'MonetaryAmount', str]], int, float, 'Number', 'MonetaryAmount', str]] = Field( + type_: str = Field(default="ExchangeRateSpecification", alias='@type', const=True) + exchangeRateSpread: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]], StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]] = Field( default=None, description="The difference between the price at which a broker or other intermediary buys and sells" "foreign currency.", diff --git a/pydantic_schemaorg/ExchangeRefund.py b/pydantic_schemaorg/ExchangeRefund.py index b3c2a6e8..5b07d4dd 100644 --- a/pydantic_schemaorg/ExchangeRefund.py +++ b/pydantic_schemaorg/ExchangeRefund.py @@ -11,5 +11,5 @@ class ExchangeRefund(RefundTypeEnumeration): See: https://schema.org/ExchangeRefund Model depth: 5 """ - type_: str = Field(default="ExchangeRefund", alias='@type', constant=True) + type_: str = Field(default="ExchangeRefund", alias='@type', const=True) diff --git a/pydantic_schemaorg/ExerciseAction.py b/pydantic_schemaorg/ExerciseAction.py index e328f186..fdc51879 100644 --- a/pydantic_schemaorg/ExerciseAction.py +++ b/pydantic_schemaorg/ExerciseAction.py @@ -15,7 +15,7 @@ class ExerciseAction(PlayAction): See: https://schema.org/ExerciseAction Model depth: 4 """ - type_: str = Field(default="ExerciseAction", alias='@type', constant=True) + type_: str = Field(default="ExerciseAction", alias='@type', const=True) exercisePlan: Optional[Union[List[Union['ExercisePlan', str]], 'ExercisePlan', str]] = Field( default=None, description="A sub property of instrument. The exercise plan used on this action.", diff --git a/pydantic_schemaorg/ExerciseGym.py b/pydantic_schemaorg/ExerciseGym.py index 982992aa..746057b3 100644 --- a/pydantic_schemaorg/ExerciseGym.py +++ b/pydantic_schemaorg/ExerciseGym.py @@ -11,5 +11,5 @@ class ExerciseGym(SportsActivityLocation): See: https://schema.org/ExerciseGym Model depth: 5 """ - type_: str = Field(default="ExerciseGym", alias='@type', constant=True) + type_: str = Field(default="ExerciseGym", alias='@type', const=True) diff --git a/pydantic_schemaorg/ExercisePlan.py b/pydantic_schemaorg/ExercisePlan.py index ab12612e..e383f567 100644 --- a/pydantic_schemaorg/ExercisePlan.py +++ b/pydantic_schemaorg/ExercisePlan.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -17,8 +17,8 @@ class ExercisePlan(PhysicalActivity, CreativeWork): See: https://schema.org/ExercisePlan Model depth: 3 """ - type_: str = Field(default="ExercisePlan", alias='@type', constant=True) - repetitions: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + type_: str = Field(default="ExercisePlan", alias='@type', const=True) + repetitions: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="Number of times one should repeat the activity.", ) @@ -31,7 +31,7 @@ class ExercisePlan(PhysicalActivity, CreativeWork): description="Quantitative measure gauging the degree of force involved in the exercise, for example," "heartbeats per minute. May include the velocity of the movement.", ) - workload: Optional[Union[List[Union['QuantitativeValue', 'Energy', str]], 'QuantitativeValue', 'Energy', str]] = Field( + workload: Optional[Union[List[Union['Energy', 'QuantitativeValue', str]], 'Energy', 'QuantitativeValue', str]] = Field( default=None, description="Quantitative measure of the physiologic output of the exercise; also referred to as" "energy expenditure.", @@ -47,7 +47,7 @@ class ExercisePlan(PhysicalActivity, CreativeWork): description="Type(s) of exercise or activity, such as strength training, flexibility training," "aerobics, cardiac rehabilitation, etc.", ) - activityDuration: Optional[Union[List[Union['QuantitativeValue', 'Duration', str]], 'QuantitativeValue', 'Duration', str]] = Field( + activityDuration: Optional[Union[List[Union['Duration', 'QuantitativeValue', str]], 'Duration', 'QuantitativeValue', str]] = Field( default=None, description="Length of time to engage in the activity.", ) diff --git a/pydantic_schemaorg/ExhibitionEvent.py b/pydantic_schemaorg/ExhibitionEvent.py index ca9758cd..2f8ec578 100644 --- a/pydantic_schemaorg/ExhibitionEvent.py +++ b/pydantic_schemaorg/ExhibitionEvent.py @@ -11,5 +11,5 @@ class ExhibitionEvent(Event): See: https://schema.org/ExhibitionEvent Model depth: 3 """ - type_: str = Field(default="ExhibitionEvent", alias='@type', constant=True) + type_: str = Field(default="ExhibitionEvent", alias='@type', const=True) diff --git a/pydantic_schemaorg/Eye.py b/pydantic_schemaorg/Eye.py index e60e8558..ad19f109 100644 --- a/pydantic_schemaorg/Eye.py +++ b/pydantic_schemaorg/Eye.py @@ -11,5 +11,5 @@ class Eye(PhysicalExam): See: https://schema.org/Eye Model depth: 5 """ - type_: str = Field(default="Eye", alias='@type', constant=True) + type_: str = Field(default="Eye", alias='@type', const=True) diff --git a/pydantic_schemaorg/FAQPage.py b/pydantic_schemaorg/FAQPage.py index 82055786..729891bb 100644 --- a/pydantic_schemaorg/FAQPage.py +++ b/pydantic_schemaorg/FAQPage.py @@ -12,5 +12,5 @@ class FAQPage(WebPage): See: https://schema.org/FAQPage Model depth: 4 """ - type_: str = Field(default="FAQPage", alias='@type', constant=True) + type_: str = Field(default="FAQPage", alias='@type', const=True) diff --git a/pydantic_schemaorg/FDAcategoryA.py b/pydantic_schemaorg/FDAcategoryA.py index e7b60390..99715099 100644 --- a/pydantic_schemaorg/FDAcategoryA.py +++ b/pydantic_schemaorg/FDAcategoryA.py @@ -13,5 +13,5 @@ class FDAcategoryA(DrugPregnancyCategory): See: https://schema.org/FDAcategoryA Model depth: 6 """ - type_: str = Field(default="FDAcategoryA", alias='@type', constant=True) + type_: str = Field(default="FDAcategoryA", alias='@type', const=True) diff --git a/pydantic_schemaorg/FDAcategoryB.py b/pydantic_schemaorg/FDAcategoryB.py index b98a56ea..ef3594d5 100644 --- a/pydantic_schemaorg/FDAcategoryB.py +++ b/pydantic_schemaorg/FDAcategoryB.py @@ -13,5 +13,5 @@ class FDAcategoryB(DrugPregnancyCategory): See: https://schema.org/FDAcategoryB Model depth: 6 """ - type_: str = Field(default="FDAcategoryB", alias='@type', constant=True) + type_: str = Field(default="FDAcategoryB", alias='@type', const=True) diff --git a/pydantic_schemaorg/FDAcategoryC.py b/pydantic_schemaorg/FDAcategoryC.py index 70f2c3b3..2c40e556 100644 --- a/pydantic_schemaorg/FDAcategoryC.py +++ b/pydantic_schemaorg/FDAcategoryC.py @@ -14,5 +14,5 @@ class FDAcategoryC(DrugPregnancyCategory): See: https://schema.org/FDAcategoryC Model depth: 6 """ - type_: str = Field(default="FDAcategoryC", alias='@type', constant=True) + type_: str = Field(default="FDAcategoryC", alias='@type', const=True) diff --git a/pydantic_schemaorg/FDAcategoryD.py b/pydantic_schemaorg/FDAcategoryD.py index 68dea7d2..14644910 100644 --- a/pydantic_schemaorg/FDAcategoryD.py +++ b/pydantic_schemaorg/FDAcategoryD.py @@ -14,5 +14,5 @@ class FDAcategoryD(DrugPregnancyCategory): See: https://schema.org/FDAcategoryD Model depth: 6 """ - type_: str = Field(default="FDAcategoryD", alias='@type', constant=True) + type_: str = Field(default="FDAcategoryD", alias='@type', const=True) diff --git a/pydantic_schemaorg/FDAcategoryX.py b/pydantic_schemaorg/FDAcategoryX.py index 4cf43122..c3743529 100644 --- a/pydantic_schemaorg/FDAcategoryX.py +++ b/pydantic_schemaorg/FDAcategoryX.py @@ -14,5 +14,5 @@ class FDAcategoryX(DrugPregnancyCategory): See: https://schema.org/FDAcategoryX Model depth: 6 """ - type_: str = Field(default="FDAcategoryX", alias='@type', constant=True) + type_: str = Field(default="FDAcategoryX", alias='@type', const=True) diff --git a/pydantic_schemaorg/FDAnotEvaluated.py b/pydantic_schemaorg/FDAnotEvaluated.py index a9572e6b..6d9561c5 100644 --- a/pydantic_schemaorg/FDAnotEvaluated.py +++ b/pydantic_schemaorg/FDAnotEvaluated.py @@ -12,5 +12,5 @@ class FDAnotEvaluated(DrugPregnancyCategory): See: https://schema.org/FDAnotEvaluated Model depth: 6 """ - type_: str = Field(default="FDAnotEvaluated", alias='@type', constant=True) + type_: str = Field(default="FDAnotEvaluated", alias='@type', const=True) diff --git a/pydantic_schemaorg/FMRadioChannel.py b/pydantic_schemaorg/FMRadioChannel.py index 5f1d475d..eab22e33 100644 --- a/pydantic_schemaorg/FMRadioChannel.py +++ b/pydantic_schemaorg/FMRadioChannel.py @@ -11,5 +11,5 @@ class FMRadioChannel(RadioChannel): See: https://schema.org/FMRadioChannel Model depth: 5 """ - type_: str = Field(default="FMRadioChannel", alias='@type', constant=True) + type_: str = Field(default="FMRadioChannel", alias='@type', const=True) diff --git a/pydantic_schemaorg/FailedActionStatus.py b/pydantic_schemaorg/FailedActionStatus.py index f27ce20b..5c60df50 100644 --- a/pydantic_schemaorg/FailedActionStatus.py +++ b/pydantic_schemaorg/FailedActionStatus.py @@ -12,5 +12,5 @@ class FailedActionStatus(ActionStatusType): See: https://schema.org/FailedActionStatus Model depth: 6 """ - type_: str = Field(default="FailedActionStatus", alias='@type', constant=True) + type_: str = Field(default="FailedActionStatus", alias='@type', const=True) diff --git a/pydantic_schemaorg/False_.py b/pydantic_schemaorg/False_.py index 4531eedc..90db0516 100644 --- a/pydantic_schemaorg/False_.py +++ b/pydantic_schemaorg/False_.py @@ -11,5 +11,5 @@ class False_(Boolean): See: https://schema.org/False Model depth: 6 """ - type_: str = Field(default="False", alias='@type', constant=True) + type_: str = Field(default="False", alias='@type', const=True) diff --git a/pydantic_schemaorg/FastFoodRestaurant.py b/pydantic_schemaorg/FastFoodRestaurant.py index 91796aaf..477bac52 100644 --- a/pydantic_schemaorg/FastFoodRestaurant.py +++ b/pydantic_schemaorg/FastFoodRestaurant.py @@ -11,5 +11,5 @@ class FastFoodRestaurant(FoodEstablishment): See: https://schema.org/FastFoodRestaurant Model depth: 5 """ - type_: str = Field(default="FastFoodRestaurant", alias='@type', constant=True) + type_: str = Field(default="FastFoodRestaurant", alias='@type', const=True) diff --git a/pydantic_schemaorg/Female.py b/pydantic_schemaorg/Female.py index 80389b18..7fe0d171 100644 --- a/pydantic_schemaorg/Female.py +++ b/pydantic_schemaorg/Female.py @@ -11,5 +11,5 @@ class Female(GenderType): See: https://schema.org/Female Model depth: 5 """ - type_: str = Field(default="Female", alias='@type', constant=True) + type_: str = Field(default="Female", alias='@type', const=True) diff --git a/pydantic_schemaorg/Festival.py b/pydantic_schemaorg/Festival.py index 4953b077..87ac315c 100644 --- a/pydantic_schemaorg/Festival.py +++ b/pydantic_schemaorg/Festival.py @@ -11,5 +11,5 @@ class Festival(Event): See: https://schema.org/Festival Model depth: 3 """ - type_: str = Field(default="Festival", alias='@type', constant=True) + type_: str = Field(default="Festival", alias='@type', const=True) diff --git a/pydantic_schemaorg/FilmAction.py b/pydantic_schemaorg/FilmAction.py index f1e0aea5..3854f522 100644 --- a/pydantic_schemaorg/FilmAction.py +++ b/pydantic_schemaorg/FilmAction.py @@ -11,5 +11,5 @@ class FilmAction(CreateAction): See: https://schema.org/FilmAction Model depth: 4 """ - type_: str = Field(default="FilmAction", alias='@type', constant=True) + type_: str = Field(default="FilmAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/FinancialProduct.py b/pydantic_schemaorg/FinancialProduct.py index d9533d9d..4a42e4b8 100644 --- a/pydantic_schemaorg/FinancialProduct.py +++ b/pydantic_schemaorg/FinancialProduct.py @@ -1,9 +1,8 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import AnyUrl, StrictInt, StrictFloat from typing import List, Optional, Union -from pydantic import AnyUrl from pydantic import Field @@ -18,8 +17,8 @@ class FinancialProduct(Service): See: https://schema.org/FinancialProduct Model depth: 4 """ - type_: str = Field(default="FinancialProduct", alias='@type', constant=True) - annualPercentageRate: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + type_: str = Field(default="FinancialProduct", alias='@type', const=True) + annualPercentageRate: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The annual rate that is charged for borrowing (or made by investing), expressed as a single" "percentage number that represents the actual yearly cost of funds over the term of a loan." @@ -30,7 +29,7 @@ class FinancialProduct(Service): description="Description of fees, commissions, and other terms applied either to a class of financial" "product, or by a financial service organization.", ) - interestRate: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + interestRate: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The interest rate, charged or paid, applicable to the financial product. Note: This" "is different from the calculated annualPercentageRate.", diff --git a/pydantic_schemaorg/FinancialService.py b/pydantic_schemaorg/FinancialService.py index 36344de5..93542a3b 100644 --- a/pydantic_schemaorg/FinancialService.py +++ b/pydantic_schemaorg/FinancialService.py @@ -15,7 +15,7 @@ class FinancialService(LocalBusiness): See: https://schema.org/FinancialService Model depth: 4 """ - type_: str = Field(default="FinancialService", alias='@type', constant=True) + type_: str = Field(default="FinancialService", alias='@type', const=True) feesAndCommissionsSpecification: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text']], AnyUrl, 'URL', str, 'Text']] = Field( default=None, description="Description of fees, commissions, and other terms applied either to a class of financial" diff --git a/pydantic_schemaorg/FindAction.py b/pydantic_schemaorg/FindAction.py index 8ea4bbb7..6046f18b 100644 --- a/pydantic_schemaorg/FindAction.py +++ b/pydantic_schemaorg/FindAction.py @@ -12,5 +12,5 @@ class FindAction(Action): See: https://schema.org/FindAction Model depth: 3 """ - type_: str = Field(default="FindAction", alias='@type', constant=True) + type_: str = Field(default="FindAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/FireStation.py b/pydantic_schemaorg/FireStation.py index fc1f2424..21f6af2d 100644 --- a/pydantic_schemaorg/FireStation.py +++ b/pydantic_schemaorg/FireStation.py @@ -12,5 +12,5 @@ class FireStation(EmergencyService, CivicStructure): See: https://schema.org/FireStation Model depth: 4 """ - type_: str = Field(default="FireStation", alias='@type', constant=True) + type_: str = Field(default="FireStation", alias='@type', const=True) diff --git a/pydantic_schemaorg/Flexibility.py b/pydantic_schemaorg/Flexibility.py index 4ddb7910..cdbd2787 100644 --- a/pydantic_schemaorg/Flexibility.py +++ b/pydantic_schemaorg/Flexibility.py @@ -11,5 +11,5 @@ class Flexibility(PhysicalActivityCategory): See: https://schema.org/Flexibility Model depth: 5 """ - type_: str = Field(default="Flexibility", alias='@type', constant=True) + type_: str = Field(default="Flexibility", alias='@type', const=True) diff --git a/pydantic_schemaorg/Flight.py b/pydantic_schemaorg/Flight.py index 3ad876ec..fe4589a6 100644 --- a/pydantic_schemaorg/Flight.py +++ b/pydantic_schemaorg/Flight.py @@ -15,7 +15,7 @@ class Flight(Trip): See: https://schema.org/Flight Model depth: 4 """ - type_: str = Field(default="Flight", alias='@type', constant=True) + type_: str = Field(default="Flight", alias='@type', const=True) boardingPolicy: Optional[Union[List[Union['BoardingPolicyType', str]], 'BoardingPolicyType', str]] = Field( default=None, description="The type of boarding policy used by the airline (e.g. zone-based or group-based).", @@ -33,7 +33,7 @@ class Flight(Trip): description="The unique identifier for a flight including the airline IATA code. For example, if describing" "United flight 110, where the IATA code for United is 'UA', the flightNumber is 'UA110'.", ) - seller: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + seller: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="An entity which offers (sells / leases / lends / loans) the services / goods. A seller may" "also be a provider.", @@ -84,8 +84,8 @@ class Flight(Trip): from pydantic_schemaorg.BoardingPolicyType import BoardingPolicyType from pydantic_schemaorg.Text import Text from pydantic_schemaorg.Distance import Distance - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Duration import Duration from pydantic_schemaorg.Vehicle import Vehicle from pydantic_schemaorg.DateTime import DateTime diff --git a/pydantic_schemaorg/FlightReservation.py b/pydantic_schemaorg/FlightReservation.py index 9ac28dad..6f95439d 100644 --- a/pydantic_schemaorg/FlightReservation.py +++ b/pydantic_schemaorg/FlightReservation.py @@ -16,7 +16,7 @@ class FlightReservation(Reservation): See: https://schema.org/FlightReservation Model depth: 4 """ - type_: str = Field(default="FlightReservation", alias='@type', constant=True) + type_: str = Field(default="FlightReservation", alias='@type', const=True) passengerSequenceNumber: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The passenger's sequence number as assigned by the airline.", diff --git a/pydantic_schemaorg/Float.py b/pydantic_schemaorg/Float.py index 89d5cec9..90bb8bb9 100644 --- a/pydantic_schemaorg/Float.py +++ b/pydantic_schemaorg/Float.py @@ -11,5 +11,5 @@ class Float(Number): See: https://schema.org/Float Model depth: 6 """ - type_: str = Field(default="Float", alias='@type', constant=True) + type_: str = Field(default="Float", alias='@type', const=True) diff --git a/pydantic_schemaorg/FloorPlan.py b/pydantic_schemaorg/FloorPlan.py index 5e3a7b00..7bdc6ea3 100644 --- a/pydantic_schemaorg/FloorPlan.py +++ b/pydantic_schemaorg/FloorPlan.py @@ -1,9 +1,8 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import AnyUrl, StrictBool, StrictInt, StrictFloat from typing import List, Optional, Union -from pydantic import AnyUrl, StrictBool from pydantic import Field @@ -22,8 +21,8 @@ class FloorPlan(Intangible): See: https://schema.org/FloorPlan Model depth: 3 """ - type_: str = Field(default="FloorPlan", alias='@type', constant=True) - numberOfBedrooms: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + type_: str = Field(default="FloorPlan", alias='@type', const=True) + numberOfBedrooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]]" "or [[FloorPlan]].", @@ -35,7 +34,7 @@ class FloorPlan(Intangible): "\"The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms" "and one Half Bathroom, the Bathrooms Total Integer will be 3.\". See also [[numberOfRooms]].", ) - numberOfPartialBathrooms: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + numberOfPartialBathrooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]." "This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field).", @@ -50,7 +49,7 @@ class FloorPlan(Intangible): "property does not make a statement about whether the feature is included in an offer for" "the main accommodation or available at extra costs.", ) - numberOfRooms: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + numberOfRooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The number of rooms (excluding bathrooms and closets) of the accommodation or lodging" "business. Typical unit code(s): ROM for room or C62 for no unit. The type of room can be" @@ -76,7 +75,7 @@ class FloorPlan(Intangible): default=None, description="Indicates some accommodation that this floor plan describes.", ) - numberOfFullBathrooms: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + numberOfFullBathrooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]." "This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).", diff --git a/pydantic_schemaorg/Florist.py b/pydantic_schemaorg/Florist.py index 32ab45f7..7cbeb79f 100644 --- a/pydantic_schemaorg/Florist.py +++ b/pydantic_schemaorg/Florist.py @@ -11,5 +11,5 @@ class Florist(Store): See: https://schema.org/Florist Model depth: 5 """ - type_: str = Field(default="Florist", alias='@type', constant=True) + type_: str = Field(default="Florist", alias='@type', const=True) diff --git a/pydantic_schemaorg/FollowAction.py b/pydantic_schemaorg/FollowAction.py index 100f79d3..b630c13e 100644 --- a/pydantic_schemaorg/FollowAction.py +++ b/pydantic_schemaorg/FollowAction.py @@ -24,13 +24,13 @@ class FollowAction(InteractAction): See: https://schema.org/FollowAction Model depth: 4 """ - type_: str = Field(default="FollowAction", alias='@type', constant=True) - followee: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + type_: str = Field(default="FollowAction", alias='@type', const=True) + followee: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A sub property of object. The person or organization being followed.", ) if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization diff --git a/pydantic_schemaorg/FoodEstablishment.py b/pydantic_schemaorg/FoodEstablishment.py index cbb32b39..2ccf2cfb 100644 --- a/pydantic_schemaorg/FoodEstablishment.py +++ b/pydantic_schemaorg/FoodEstablishment.py @@ -15,7 +15,7 @@ class FoodEstablishment(LocalBusiness): See: https://schema.org/FoodEstablishment Model depth: 4 """ - type_: str = Field(default="FoodEstablishment", alias='@type', constant=True) + type_: str = Field(default="FoodEstablishment", alias='@type', const=True) menu: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'Menu']], AnyUrl, 'URL', str, 'Text', 'Menu']] = Field( default=None, description="Either the actual menu as a structured representation, as text, or a URL of the menu.", diff --git a/pydantic_schemaorg/FoodEstablishmentReservation.py b/pydantic_schemaorg/FoodEstablishmentReservation.py index f3006b05..b2cfd48e 100644 --- a/pydantic_schemaorg/FoodEstablishmentReservation.py +++ b/pydantic_schemaorg/FoodEstablishmentReservation.py @@ -17,7 +17,7 @@ class FoodEstablishmentReservation(Reservation): See: https://schema.org/FoodEstablishmentReservation Model depth: 4 """ - type_: str = Field(default="FoodEstablishmentReservation", alias='@type', constant=True) + type_: str = Field(default="FoodEstablishmentReservation", alias='@type', const=True) partySize: Optional[Union[List[Union[int, 'Integer', 'QuantitativeValue', str]], int, 'Integer', 'QuantitativeValue', str]] = Field( default=None, description="Number of people the reservation should accommodate.", diff --git a/pydantic_schemaorg/FoodEvent.py b/pydantic_schemaorg/FoodEvent.py index 74723278..77256003 100644 --- a/pydantic_schemaorg/FoodEvent.py +++ b/pydantic_schemaorg/FoodEvent.py @@ -11,5 +11,5 @@ class FoodEvent(Event): See: https://schema.org/FoodEvent Model depth: 3 """ - type_: str = Field(default="FoodEvent", alias='@type', constant=True) + type_: str = Field(default="FoodEvent", alias='@type', const=True) diff --git a/pydantic_schemaorg/FoodService.py b/pydantic_schemaorg/FoodService.py index dc6a546a..77e473c6 100644 --- a/pydantic_schemaorg/FoodService.py +++ b/pydantic_schemaorg/FoodService.py @@ -11,5 +11,5 @@ class FoodService(Service): See: https://schema.org/FoodService Model depth: 4 """ - type_: str = Field(default="FoodService", alias='@type', constant=True) + type_: str = Field(default="FoodService", alias='@type', const=True) diff --git a/pydantic_schemaorg/FourWheelDriveConfiguration.py b/pydantic_schemaorg/FourWheelDriveConfiguration.py index 38ff7b2b..505b2253 100644 --- a/pydantic_schemaorg/FourWheelDriveConfiguration.py +++ b/pydantic_schemaorg/FourWheelDriveConfiguration.py @@ -12,5 +12,5 @@ class FourWheelDriveConfiguration(DriveWheelConfigurationValue): See: https://schema.org/FourWheelDriveConfiguration Model depth: 6 """ - type_: str = Field(default="FourWheelDriveConfiguration", alias='@type', constant=True) + type_: str = Field(default="FourWheelDriveConfiguration", alias='@type', const=True) diff --git a/pydantic_schemaorg/FreeReturn.py b/pydantic_schemaorg/FreeReturn.py index 581f27cb..66b9ce07 100644 --- a/pydantic_schemaorg/FreeReturn.py +++ b/pydantic_schemaorg/FreeReturn.py @@ -11,5 +11,5 @@ class FreeReturn(ReturnFeesEnumeration): See: https://schema.org/FreeReturn Model depth: 5 """ - type_: str = Field(default="FreeReturn", alias='@type', constant=True) + type_: str = Field(default="FreeReturn", alias='@type', const=True) diff --git a/pydantic_schemaorg/Friday.py b/pydantic_schemaorg/Friday.py index 6319c6c7..4699bc5c 100644 --- a/pydantic_schemaorg/Friday.py +++ b/pydantic_schemaorg/Friday.py @@ -11,5 +11,5 @@ class Friday(DayOfWeek): See: https://schema.org/Friday Model depth: 5 """ - type_: str = Field(default="Friday", alias='@type', constant=True) + type_: str = Field(default="Friday", alias='@type', const=True) diff --git a/pydantic_schemaorg/FrontWheelDriveConfiguration.py b/pydantic_schemaorg/FrontWheelDriveConfiguration.py index f5cc73a8..2aee8513 100644 --- a/pydantic_schemaorg/FrontWheelDriveConfiguration.py +++ b/pydantic_schemaorg/FrontWheelDriveConfiguration.py @@ -11,5 +11,5 @@ class FrontWheelDriveConfiguration(DriveWheelConfigurationValue): See: https://schema.org/FrontWheelDriveConfiguration Model depth: 6 """ - type_: str = Field(default="FrontWheelDriveConfiguration", alias='@type', constant=True) + type_: str = Field(default="FrontWheelDriveConfiguration", alias='@type', const=True) diff --git a/pydantic_schemaorg/FullRefund.py b/pydantic_schemaorg/FullRefund.py index 98230f7e..95080750 100644 --- a/pydantic_schemaorg/FullRefund.py +++ b/pydantic_schemaorg/FullRefund.py @@ -11,5 +11,5 @@ class FullRefund(RefundTypeEnumeration): See: https://schema.org/FullRefund Model depth: 5 """ - type_: str = Field(default="FullRefund", alias='@type', constant=True) + type_: str = Field(default="FullRefund", alias='@type', const=True) diff --git a/pydantic_schemaorg/FundingAgency.py b/pydantic_schemaorg/FundingAgency.py index 478b4fdd..6ebfaf7e 100644 --- a/pydantic_schemaorg/FundingAgency.py +++ b/pydantic_schemaorg/FundingAgency.py @@ -15,5 +15,5 @@ class FundingAgency(Project): See: https://schema.org/FundingAgency Model depth: 4 """ - type_: str = Field(default="FundingAgency", alias='@type', constant=True) + type_: str = Field(default="FundingAgency", alias='@type', const=True) diff --git a/pydantic_schemaorg/FundingScheme.py b/pydantic_schemaorg/FundingScheme.py index f647d4d7..d1c06ba4 100644 --- a/pydantic_schemaorg/FundingScheme.py +++ b/pydantic_schemaorg/FundingScheme.py @@ -18,5 +18,5 @@ class FundingScheme(Organization): See: https://schema.org/FundingScheme Model depth: 3 """ - type_: str = Field(default="FundingScheme", alias='@type', constant=True) + type_: str = Field(default="FundingScheme", alias='@type', const=True) diff --git a/pydantic_schemaorg/Fungus.py b/pydantic_schemaorg/Fungus.py index 3d44bcf2..f63fc52e 100644 --- a/pydantic_schemaorg/Fungus.py +++ b/pydantic_schemaorg/Fungus.py @@ -11,5 +11,5 @@ class Fungus(InfectiousAgentClass): See: https://schema.org/Fungus Model depth: 6 """ - type_: str = Field(default="Fungus", alias='@type', constant=True) + type_: str = Field(default="Fungus", alias='@type', const=True) diff --git a/pydantic_schemaorg/FurnitureStore.py b/pydantic_schemaorg/FurnitureStore.py index 9c487504..591532ac 100644 --- a/pydantic_schemaorg/FurnitureStore.py +++ b/pydantic_schemaorg/FurnitureStore.py @@ -11,5 +11,5 @@ class FurnitureStore(Store): See: https://schema.org/FurnitureStore Model depth: 5 """ - type_: str = Field(default="FurnitureStore", alias='@type', constant=True) + type_: str = Field(default="FurnitureStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/Game.py b/pydantic_schemaorg/Game.py index bbba122d..4c734ed9 100644 --- a/pydantic_schemaorg/Game.py +++ b/pydantic_schemaorg/Game.py @@ -17,8 +17,8 @@ class Game(CreativeWork): See: https://schema.org/Game Model depth: 3 """ - type_: str = Field(default="Game", alias='@type', constant=True) - gameLocation: Optional[Union[List[Union[AnyUrl, 'URL', 'Place', 'PostalAddress', str]], AnyUrl, 'URL', 'Place', 'PostalAddress', str]] = Field( + type_: str = Field(default="Game", alias='@type', const=True) + gameLocation: Optional[Union[List[Union[AnyUrl, 'URL', 'PostalAddress', 'Place', str]], AnyUrl, 'URL', 'PostalAddress', 'Place', str]] = Field( default=None, description="Real or fictional location of the game (or part of game).", ) @@ -45,7 +45,7 @@ class Game(CreativeWork): if TYPE_CHECKING: from pydantic_schemaorg.URL import URL - from pydantic_schemaorg.Place import Place from pydantic_schemaorg.PostalAddress import PostalAddress + from pydantic_schemaorg.Place import Place from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.QuantitativeValue import QuantitativeValue diff --git a/pydantic_schemaorg/GamePlayMode.py b/pydantic_schemaorg/GamePlayMode.py index ac92b58a..4ee1a421 100644 --- a/pydantic_schemaorg/GamePlayMode.py +++ b/pydantic_schemaorg/GamePlayMode.py @@ -11,5 +11,5 @@ class GamePlayMode(Enumeration): See: https://schema.org/GamePlayMode Model depth: 4 """ - type_: str = Field(default="GamePlayMode", alias='@type', constant=True) + type_: str = Field(default="GamePlayMode", alias='@type', const=True) diff --git a/pydantic_schemaorg/GameServer.py b/pydantic_schemaorg/GameServer.py index 28002b7e..450fe1d2 100644 --- a/pydantic_schemaorg/GameServer.py +++ b/pydantic_schemaorg/GameServer.py @@ -14,7 +14,7 @@ class GameServer(Intangible): See: https://schema.org/GameServer Model depth: 3 """ - type_: str = Field(default="GameServer", alias='@type', constant=True) + type_: str = Field(default="GameServer", alias='@type', const=True) serverStatus: Optional[Union[List[Union['GameServerStatus', str]], 'GameServerStatus', str]] = Field( default=None, description="Status of a game server.", diff --git a/pydantic_schemaorg/GameServerStatus.py b/pydantic_schemaorg/GameServerStatus.py index 37141b41..7ff4ed03 100644 --- a/pydantic_schemaorg/GameServerStatus.py +++ b/pydantic_schemaorg/GameServerStatus.py @@ -11,5 +11,5 @@ class GameServerStatus(StatusEnumeration): See: https://schema.org/GameServerStatus Model depth: 5 """ - type_: str = Field(default="GameServerStatus", alias='@type', constant=True) + type_: str = Field(default="GameServerStatus", alias='@type', const=True) diff --git a/pydantic_schemaorg/GardenStore.py b/pydantic_schemaorg/GardenStore.py index c4180ddf..cae0eb85 100644 --- a/pydantic_schemaorg/GardenStore.py +++ b/pydantic_schemaorg/GardenStore.py @@ -11,5 +11,5 @@ class GardenStore(Store): See: https://schema.org/GardenStore Model depth: 5 """ - type_: str = Field(default="GardenStore", alias='@type', constant=True) + type_: str = Field(default="GardenStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/GasStation.py b/pydantic_schemaorg/GasStation.py index d446ac60..96b3c773 100644 --- a/pydantic_schemaorg/GasStation.py +++ b/pydantic_schemaorg/GasStation.py @@ -11,5 +11,5 @@ class GasStation(AutomotiveBusiness): See: https://schema.org/GasStation Model depth: 5 """ - type_: str = Field(default="GasStation", alias='@type', constant=True) + type_: str = Field(default="GasStation", alias='@type', const=True) diff --git a/pydantic_schemaorg/Gastroenterologic.py b/pydantic_schemaorg/Gastroenterologic.py index f0bb904d..c8a65db9 100644 --- a/pydantic_schemaorg/Gastroenterologic.py +++ b/pydantic_schemaorg/Gastroenterologic.py @@ -12,5 +12,5 @@ class Gastroenterologic(MedicalSpecialty): See: https://schema.org/Gastroenterologic Model depth: 6 """ - type_: str = Field(default="Gastroenterologic", alias='@type', constant=True) + type_: str = Field(default="Gastroenterologic", alias='@type', const=True) diff --git a/pydantic_schemaorg/GatedResidenceCommunity.py b/pydantic_schemaorg/GatedResidenceCommunity.py index 62cf45b3..8a1f1462 100644 --- a/pydantic_schemaorg/GatedResidenceCommunity.py +++ b/pydantic_schemaorg/GatedResidenceCommunity.py @@ -11,5 +11,5 @@ class GatedResidenceCommunity(Residence): See: https://schema.org/GatedResidenceCommunity Model depth: 4 """ - type_: str = Field(default="GatedResidenceCommunity", alias='@type', constant=True) + type_: str = Field(default="GatedResidenceCommunity", alias='@type', const=True) diff --git a/pydantic_schemaorg/GenderType.py b/pydantic_schemaorg/GenderType.py index 7f99a4ee..9f9e136d 100644 --- a/pydantic_schemaorg/GenderType.py +++ b/pydantic_schemaorg/GenderType.py @@ -11,5 +11,5 @@ class GenderType(Enumeration): See: https://schema.org/GenderType Model depth: 4 """ - type_: str = Field(default="GenderType", alias='@type', constant=True) + type_: str = Field(default="GenderType", alias='@type', const=True) diff --git a/pydantic_schemaorg/Gene.py b/pydantic_schemaorg/Gene.py index eba61327..9be84fab 100644 --- a/pydantic_schemaorg/Gene.py +++ b/pydantic_schemaorg/Gene.py @@ -17,7 +17,7 @@ class Gene(BioChemEntity): See: https://schema.org/Gene Model depth: 3 """ - type_: str = Field(default="Gene", alias='@type', constant=True) + type_: str = Field(default="Gene", alias='@type', const=True) hasBioPolymerSequence: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A symbolic representation of a BioChemEnity. For example, a nucleotide sequence of" @@ -31,7 +31,7 @@ class Gene(BioChemEntity): default=None, description="Another gene which is a variation of this one.", ) - expressedIn: Optional[Union[List[Union['DefinedTerm', 'BioChemEntity', 'AnatomicalStructure', 'AnatomicalSystem', str]], 'DefinedTerm', 'BioChemEntity', 'AnatomicalStructure', 'AnatomicalSystem', str]] = Field( + expressedIn: Optional[Union[List[Union['DefinedTerm', 'BioChemEntity', 'AnatomicalSystem', 'AnatomicalStructure', str]], 'DefinedTerm', 'BioChemEntity', 'AnatomicalSystem', 'AnatomicalStructure', str]] = Field( default=None, description="Tissue, organ, biological sample, etc in which activity of this gene has been observed" "experimentally. For example brain, digestive system.", @@ -42,5 +42,5 @@ class Gene(BioChemEntity): from pydantic_schemaorg.Text import Text from pydantic_schemaorg.BioChemEntity import BioChemEntity from pydantic_schemaorg.DefinedTerm import DefinedTerm - from pydantic_schemaorg.AnatomicalStructure import AnatomicalStructure from pydantic_schemaorg.AnatomicalSystem import AnatomicalSystem + from pydantic_schemaorg.AnatomicalStructure import AnatomicalStructure diff --git a/pydantic_schemaorg/GeneralContractor.py b/pydantic_schemaorg/GeneralContractor.py index 53a2f1d5..be64e134 100644 --- a/pydantic_schemaorg/GeneralContractor.py +++ b/pydantic_schemaorg/GeneralContractor.py @@ -11,5 +11,5 @@ class GeneralContractor(HomeAndConstructionBusiness): See: https://schema.org/GeneralContractor Model depth: 5 """ - type_: str = Field(default="GeneralContractor", alias='@type', constant=True) + type_: str = Field(default="GeneralContractor", alias='@type', const=True) diff --git a/pydantic_schemaorg/Genetic.py b/pydantic_schemaorg/Genetic.py index 8b72cf01..472fb3d7 100644 --- a/pydantic_schemaorg/Genetic.py +++ b/pydantic_schemaorg/Genetic.py @@ -12,5 +12,5 @@ class Genetic(MedicalSpecialty): See: https://schema.org/Genetic Model depth: 6 """ - type_: str = Field(default="Genetic", alias='@type', constant=True) + type_: str = Field(default="Genetic", alias='@type', const=True) diff --git a/pydantic_schemaorg/Genitourinary.py b/pydantic_schemaorg/Genitourinary.py index 990fff0a..e50fda62 100644 --- a/pydantic_schemaorg/Genitourinary.py +++ b/pydantic_schemaorg/Genitourinary.py @@ -11,5 +11,5 @@ class Genitourinary(PhysicalExam): See: https://schema.org/Genitourinary Model depth: 5 """ - type_: str = Field(default="Genitourinary", alias='@type', constant=True) + type_: str = Field(default="Genitourinary", alias='@type', const=True) diff --git a/pydantic_schemaorg/GeoCircle.py b/pydantic_schemaorg/GeoCircle.py index e4ea248f..961d84f3 100644 --- a/pydantic_schemaorg/GeoCircle.py +++ b/pydantic_schemaorg/GeoCircle.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -18,12 +18,12 @@ class GeoCircle(GeoShape): See: https://schema.org/GeoCircle Model depth: 5 """ - type_: str = Field(default="GeoCircle", alias='@type', constant=True) + type_: str = Field(default="GeoCircle", alias='@type', const=True) geoMidpoint: Optional[Union[List[Union['GeoCoordinates', str]], 'GeoCoordinates', str]] = Field( default=None, description="Indicates the GeoCoordinates at the centre of a GeoShape e.g. GeoCircle.", ) - geoRadius: Optional[Union[List[Union[int, float, 'Number', str, 'Text', 'Distance']], int, float, 'Number', str, 'Text', 'Distance']] = Field( + geoRadius: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text', 'Distance']], StrictInt, StrictFloat, 'Number', str, 'Text', 'Distance']] = Field( default=None, description="Indicates the approximate radius of a GeoCircle (metres unless indicated otherwise" "via Distance notation).", diff --git a/pydantic_schemaorg/GeoCoordinates.py b/pydantic_schemaorg/GeoCoordinates.py index f0bebd3c..c5a63722 100644 --- a/pydantic_schemaorg/GeoCoordinates.py +++ b/pydantic_schemaorg/GeoCoordinates.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -15,20 +15,20 @@ class GeoCoordinates(StructuredValue): See: https://schema.org/GeoCoordinates Model depth: 4 """ - type_: str = Field(default="GeoCoordinates", alias='@type', constant=True) + type_: str = Field(default="GeoCoordinates", alias='@type', const=True) postalCode: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The postal code. For example, 94043.", ) - longitude: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + longitude: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).", ) - latitude: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + latitude: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).", ) - elevation: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + elevation: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The elevation of a location ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System))." "Values may be of the form 'NUMBER UNIT_OF_MEASUREMENT' (e.g., '1,000 m', '3,200 ft')" diff --git a/pydantic_schemaorg/GeoShape.py b/pydantic_schemaorg/GeoShape.py index 8c2f7be7..e28bb2a5 100644 --- a/pydantic_schemaorg/GeoShape.py +++ b/pydantic_schemaorg/GeoShape.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -18,7 +18,7 @@ class GeoShape(StructuredValue): See: https://schema.org/GeoShape Model depth: 4 """ - type_: str = Field(default="GeoShape", alias='@type', constant=True) + type_: str = Field(default="GeoShape", alias='@type', const=True) polygon: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A polygon is the area enclosed by a point-to-point path for which the starting and ending" @@ -39,7 +39,7 @@ class GeoShape(StructuredValue): description="A circle is the circular region of a specified radius centered at a specified latitude" "and longitude. A circle is expressed as a pair followed by a radius in meters.", ) - elevation: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + elevation: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The elevation of a location ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System))." "Values may be of the form 'NUMBER UNIT_OF_MEASUREMENT' (e.g., '1,000 m', '3,200 ft')" diff --git a/pydantic_schemaorg/GeospatialGeometry.py b/pydantic_schemaorg/GeospatialGeometry.py index 0690a820..1e9eeb99 100644 --- a/pydantic_schemaorg/GeospatialGeometry.py +++ b/pydantic_schemaorg/GeospatialGeometry.py @@ -15,7 +15,7 @@ class GeospatialGeometry(Intangible): See: https://schema.org/GeospatialGeometry Model depth: 3 """ - type_: str = Field(default="GeospatialGeometry", alias='@type', constant=True) + type_: str = Field(default="GeospatialGeometry", alias='@type', const=True) geoEquals: Optional[Union[List[Union['GeospatialGeometry', 'Place', str]], 'GeospatialGeometry', 'Place', str]] = Field( default=None, description="Represents spatial relations in which two geometries (or the places they represent)" diff --git a/pydantic_schemaorg/Geriatric.py b/pydantic_schemaorg/Geriatric.py index fc760fbb..7da1b1d6 100644 --- a/pydantic_schemaorg/Geriatric.py +++ b/pydantic_schemaorg/Geriatric.py @@ -13,5 +13,5 @@ class Geriatric(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Geriatric Model depth: 5 """ - type_: str = Field(default="Geriatric", alias='@type', constant=True) + type_: str = Field(default="Geriatric", alias='@type', const=True) diff --git a/pydantic_schemaorg/GettingAccessHealthAspect.py b/pydantic_schemaorg/GettingAccessHealthAspect.py index 855620eb..22738043 100644 --- a/pydantic_schemaorg/GettingAccessHealthAspect.py +++ b/pydantic_schemaorg/GettingAccessHealthAspect.py @@ -12,5 +12,5 @@ class GettingAccessHealthAspect(HealthAspectEnumeration): See: https://schema.org/GettingAccessHealthAspect Model depth: 5 """ - type_: str = Field(default="GettingAccessHealthAspect", alias='@type', constant=True) + type_: str = Field(default="GettingAccessHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/GiveAction.py b/pydantic_schemaorg/GiveAction.py index b54c4eec..96199733 100644 --- a/pydantic_schemaorg/GiveAction.py +++ b/pydantic_schemaorg/GiveAction.py @@ -17,15 +17,15 @@ class GiveAction(TransferAction): See: https://schema.org/GiveAction Model depth: 4 """ - type_: str = Field(default="GiveAction", alias='@type', constant=True) - recipient: Optional[Union[List[Union['Organization', 'Person', 'ContactPoint', 'Audience', str]], 'Organization', 'Person', 'ContactPoint', 'Audience', str]] = Field( + type_: str = Field(default="GiveAction", alias='@type', const=True) + recipient: Optional[Union[List[Union['ContactPoint', 'Audience', 'Organization', 'Person', str]], 'ContactPoint', 'Audience', 'Organization', 'Person', str]] = Field( default=None, description="A sub property of participant. The participant who is at the receiving end of the action.", ) if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization - from pydantic_schemaorg.Person import Person from pydantic_schemaorg.ContactPoint import ContactPoint from pydantic_schemaorg.Audience import Audience + from pydantic_schemaorg.Organization import Organization + from pydantic_schemaorg.Person import Person diff --git a/pydantic_schemaorg/GlutenFreeDiet.py b/pydantic_schemaorg/GlutenFreeDiet.py index 86d5332e..43c8fd53 100644 --- a/pydantic_schemaorg/GlutenFreeDiet.py +++ b/pydantic_schemaorg/GlutenFreeDiet.py @@ -11,5 +11,5 @@ class GlutenFreeDiet(RestrictedDiet): See: https://schema.org/GlutenFreeDiet Model depth: 5 """ - type_: str = Field(default="GlutenFreeDiet", alias='@type', constant=True) + type_: str = Field(default="GlutenFreeDiet", alias='@type', const=True) diff --git a/pydantic_schemaorg/GolfCourse.py b/pydantic_schemaorg/GolfCourse.py index 42fa6f58..d217a748 100644 --- a/pydantic_schemaorg/GolfCourse.py +++ b/pydantic_schemaorg/GolfCourse.py @@ -11,5 +11,5 @@ class GolfCourse(SportsActivityLocation): See: https://schema.org/GolfCourse Model depth: 5 """ - type_: str = Field(default="GolfCourse", alias='@type', constant=True) + type_: str = Field(default="GolfCourse", alias='@type', const=True) diff --git a/pydantic_schemaorg/GovernmentBenefitsType.py b/pydantic_schemaorg/GovernmentBenefitsType.py index 8336152d..6a82dd66 100644 --- a/pydantic_schemaorg/GovernmentBenefitsType.py +++ b/pydantic_schemaorg/GovernmentBenefitsType.py @@ -12,5 +12,5 @@ class GovernmentBenefitsType(Enumeration): See: https://schema.org/GovernmentBenefitsType Model depth: 4 """ - type_: str = Field(default="GovernmentBenefitsType", alias='@type', constant=True) + type_: str = Field(default="GovernmentBenefitsType", alias='@type', const=True) diff --git a/pydantic_schemaorg/GovernmentBuilding.py b/pydantic_schemaorg/GovernmentBuilding.py index 3bbdad57..5deab7e9 100644 --- a/pydantic_schemaorg/GovernmentBuilding.py +++ b/pydantic_schemaorg/GovernmentBuilding.py @@ -11,5 +11,5 @@ class GovernmentBuilding(CivicStructure): See: https://schema.org/GovernmentBuilding Model depth: 4 """ - type_: str = Field(default="GovernmentBuilding", alias='@type', constant=True) + type_: str = Field(default="GovernmentBuilding", alias='@type', const=True) diff --git a/pydantic_schemaorg/GovernmentOffice.py b/pydantic_schemaorg/GovernmentOffice.py index 08831879..a62cd628 100644 --- a/pydantic_schemaorg/GovernmentOffice.py +++ b/pydantic_schemaorg/GovernmentOffice.py @@ -11,5 +11,5 @@ class GovernmentOffice(LocalBusiness): See: https://schema.org/GovernmentOffice Model depth: 4 """ - type_: str = Field(default="GovernmentOffice", alias='@type', constant=True) + type_: str = Field(default="GovernmentOffice", alias='@type', const=True) diff --git a/pydantic_schemaorg/GovernmentOrganization.py b/pydantic_schemaorg/GovernmentOrganization.py index a1a280ac..636615c7 100644 --- a/pydantic_schemaorg/GovernmentOrganization.py +++ b/pydantic_schemaorg/GovernmentOrganization.py @@ -11,5 +11,5 @@ class GovernmentOrganization(Organization): See: https://schema.org/GovernmentOrganization Model depth: 3 """ - type_: str = Field(default="GovernmentOrganization", alias='@type', constant=True) + type_: str = Field(default="GovernmentOrganization", alias='@type', const=True) diff --git a/pydantic_schemaorg/GovernmentPermit.py b/pydantic_schemaorg/GovernmentPermit.py index 6a726583..9b9a6062 100644 --- a/pydantic_schemaorg/GovernmentPermit.py +++ b/pydantic_schemaorg/GovernmentPermit.py @@ -11,5 +11,5 @@ class GovernmentPermit(Permit): See: https://schema.org/GovernmentPermit Model depth: 4 """ - type_: str = Field(default="GovernmentPermit", alias='@type', constant=True) + type_: str = Field(default="GovernmentPermit", alias='@type', const=True) diff --git a/pydantic_schemaorg/GovernmentService.py b/pydantic_schemaorg/GovernmentService.py index 36694af1..b3dd5e41 100644 --- a/pydantic_schemaorg/GovernmentService.py +++ b/pydantic_schemaorg/GovernmentService.py @@ -15,7 +15,7 @@ class GovernmentService(Service): See: https://schema.org/GovernmentService Model depth: 4 """ - type_: str = Field(default="GovernmentService", alias='@type', constant=True) + type_: str = Field(default="GovernmentService", alias='@type', const=True) jurisdiction: Optional[Union[List[Union[str, 'Text', 'AdministrativeArea']], str, 'Text', 'AdministrativeArea']] = Field( default=None, description="Indicates a legal jurisdiction, e.g. of some legislation, or where some government" diff --git a/pydantic_schemaorg/Grant.py b/pydantic_schemaorg/Grant.py index a6964c82..7922d8d7 100644 --- a/pydantic_schemaorg/Grant.py +++ b/pydantic_schemaorg/Grant.py @@ -23,12 +23,12 @@ class Grant(Intangible): See: https://schema.org/Grant Model depth: 3 """ - type_: str = Field(default="Grant", alias='@type', constant=True) + type_: str = Field(default="Grant", alias='@type', const=True) fundedItem: Optional[Union[List[Union['Thing', str]], 'Thing', str]] = Field( default=None, description="Indicates an item funded or sponsored through a [[Grant]].", ) - sponsor: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + sponsor: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A person or organization that supports a thing through a pledge, promise, or financial" "contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.", @@ -37,5 +37,5 @@ class Grant(Intangible): if TYPE_CHECKING: from pydantic_schemaorg.Thing import Thing - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization diff --git a/pydantic_schemaorg/GraphicNovel.py b/pydantic_schemaorg/GraphicNovel.py index 7986239c..3bde3dc1 100644 --- a/pydantic_schemaorg/GraphicNovel.py +++ b/pydantic_schemaorg/GraphicNovel.py @@ -11,5 +11,5 @@ class GraphicNovel(BookFormatType): See: https://schema.org/GraphicNovel Model depth: 5 """ - type_: str = Field(default="GraphicNovel", alias='@type', constant=True) + type_: str = Field(default="GraphicNovel", alias='@type', const=True) diff --git a/pydantic_schemaorg/GroceryStore.py b/pydantic_schemaorg/GroceryStore.py index 30e58832..6a90e9e1 100644 --- a/pydantic_schemaorg/GroceryStore.py +++ b/pydantic_schemaorg/GroceryStore.py @@ -11,5 +11,5 @@ class GroceryStore(Store): See: https://schema.org/GroceryStore Model depth: 5 """ - type_: str = Field(default="GroceryStore", alias='@type', constant=True) + type_: str = Field(default="GroceryStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/GroupBoardingPolicy.py b/pydantic_schemaorg/GroupBoardingPolicy.py index 5d3fbf8c..96d45004 100644 --- a/pydantic_schemaorg/GroupBoardingPolicy.py +++ b/pydantic_schemaorg/GroupBoardingPolicy.py @@ -11,5 +11,5 @@ class GroupBoardingPolicy(BoardingPolicyType): See: https://schema.org/GroupBoardingPolicy Model depth: 5 """ - type_: str = Field(default="GroupBoardingPolicy", alias='@type', constant=True) + type_: str = Field(default="GroupBoardingPolicy", alias='@type', const=True) diff --git a/pydantic_schemaorg/Guide.py b/pydantic_schemaorg/Guide.py index 00cc20e4..e811baca 100644 --- a/pydantic_schemaorg/Guide.py +++ b/pydantic_schemaorg/Guide.py @@ -18,7 +18,7 @@ class Guide(CreativeWork): See: https://schema.org/Guide Model depth: 3 """ - type_: str = Field(default="Guide", alias='@type', constant=True) + type_: str = Field(default="Guide", alias='@type', const=True) reviewAspect: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="This Review or Rating is relevant to this part or facet of the itemReviewed.", diff --git a/pydantic_schemaorg/Gynecologic.py b/pydantic_schemaorg/Gynecologic.py index 71c937a9..b9454aac 100644 --- a/pydantic_schemaorg/Gynecologic.py +++ b/pydantic_schemaorg/Gynecologic.py @@ -13,5 +13,5 @@ class Gynecologic(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Gynecologic Model depth: 5 """ - type_: str = Field(default="Gynecologic", alias='@type', constant=True) + type_: str = Field(default="Gynecologic", alias='@type', const=True) diff --git a/pydantic_schemaorg/HVACBusiness.py b/pydantic_schemaorg/HVACBusiness.py index c4aacfb2..f1e4af2b 100644 --- a/pydantic_schemaorg/HVACBusiness.py +++ b/pydantic_schemaorg/HVACBusiness.py @@ -11,5 +11,5 @@ class HVACBusiness(HomeAndConstructionBusiness): See: https://schema.org/HVACBusiness Model depth: 5 """ - type_: str = Field(default="HVACBusiness", alias='@type', constant=True) + type_: str = Field(default="HVACBusiness", alias='@type', const=True) diff --git a/pydantic_schemaorg/Hackathon.py b/pydantic_schemaorg/Hackathon.py index eab9e0f4..e2802955 100644 --- a/pydantic_schemaorg/Hackathon.py +++ b/pydantic_schemaorg/Hackathon.py @@ -11,5 +11,5 @@ class Hackathon(Event): See: https://schema.org/Hackathon Model depth: 3 """ - type_: str = Field(default="Hackathon", alias='@type', constant=True) + type_: str = Field(default="Hackathon", alias='@type', const=True) diff --git a/pydantic_schemaorg/HairSalon.py b/pydantic_schemaorg/HairSalon.py index c0aa4a73..dd6f227d 100644 --- a/pydantic_schemaorg/HairSalon.py +++ b/pydantic_schemaorg/HairSalon.py @@ -11,5 +11,5 @@ class HairSalon(HealthAndBeautyBusiness): See: https://schema.org/HairSalon Model depth: 5 """ - type_: str = Field(default="HairSalon", alias='@type', constant=True) + type_: str = Field(default="HairSalon", alias='@type', const=True) diff --git a/pydantic_schemaorg/HalalDiet.py b/pydantic_schemaorg/HalalDiet.py index 3c191cf2..927c5078 100644 --- a/pydantic_schemaorg/HalalDiet.py +++ b/pydantic_schemaorg/HalalDiet.py @@ -11,5 +11,5 @@ class HalalDiet(RestrictedDiet): See: https://schema.org/HalalDiet Model depth: 5 """ - type_: str = Field(default="HalalDiet", alias='@type', constant=True) + type_: str = Field(default="HalalDiet", alias='@type', const=True) diff --git a/pydantic_schemaorg/Hardcover.py b/pydantic_schemaorg/Hardcover.py index d5a33cd9..8522b366 100644 --- a/pydantic_schemaorg/Hardcover.py +++ b/pydantic_schemaorg/Hardcover.py @@ -11,5 +11,5 @@ class Hardcover(BookFormatType): See: https://schema.org/Hardcover Model depth: 5 """ - type_: str = Field(default="Hardcover", alias='@type', constant=True) + type_: str = Field(default="Hardcover", alias='@type', const=True) diff --git a/pydantic_schemaorg/HardwareStore.py b/pydantic_schemaorg/HardwareStore.py index 29455a27..5d66a4b3 100644 --- a/pydantic_schemaorg/HardwareStore.py +++ b/pydantic_schemaorg/HardwareStore.py @@ -11,5 +11,5 @@ class HardwareStore(Store): See: https://schema.org/HardwareStore Model depth: 5 """ - type_: str = Field(default="HardwareStore", alias='@type', constant=True) + type_: str = Field(default="HardwareStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/Head.py b/pydantic_schemaorg/Head.py index 4667a1a4..8c7407d5 100644 --- a/pydantic_schemaorg/Head.py +++ b/pydantic_schemaorg/Head.py @@ -11,5 +11,5 @@ class Head(PhysicalExam): See: https://schema.org/Head Model depth: 5 """ - type_: str = Field(default="Head", alias='@type', constant=True) + type_: str = Field(default="Head", alias='@type', const=True) diff --git a/pydantic_schemaorg/HealthAndBeautyBusiness.py b/pydantic_schemaorg/HealthAndBeautyBusiness.py index 66b6c03a..16668e21 100644 --- a/pydantic_schemaorg/HealthAndBeautyBusiness.py +++ b/pydantic_schemaorg/HealthAndBeautyBusiness.py @@ -11,5 +11,5 @@ class HealthAndBeautyBusiness(LocalBusiness): See: https://schema.org/HealthAndBeautyBusiness Model depth: 4 """ - type_: str = Field(default="HealthAndBeautyBusiness", alias='@type', constant=True) + type_: str = Field(default="HealthAndBeautyBusiness", alias='@type', const=True) diff --git a/pydantic_schemaorg/HealthAspectEnumeration.py b/pydantic_schemaorg/HealthAspectEnumeration.py index 77189ed5..39eb02c9 100644 --- a/pydantic_schemaorg/HealthAspectEnumeration.py +++ b/pydantic_schemaorg/HealthAspectEnumeration.py @@ -12,5 +12,5 @@ class HealthAspectEnumeration(Enumeration): See: https://schema.org/HealthAspectEnumeration Model depth: 4 """ - type_: str = Field(default="HealthAspectEnumeration", alias='@type', constant=True) + type_: str = Field(default="HealthAspectEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/HealthCare.py b/pydantic_schemaorg/HealthCare.py index 62734360..dfa1f28f 100644 --- a/pydantic_schemaorg/HealthCare.py +++ b/pydantic_schemaorg/HealthCare.py @@ -11,5 +11,5 @@ class HealthCare(GovernmentBenefitsType): See: https://schema.org/HealthCare Model depth: 5 """ - type_: str = Field(default="HealthCare", alias='@type', constant=True) + type_: str = Field(default="HealthCare", alias='@type', const=True) diff --git a/pydantic_schemaorg/HealthClub.py b/pydantic_schemaorg/HealthClub.py index dc5f58c8..6317939f 100644 --- a/pydantic_schemaorg/HealthClub.py +++ b/pydantic_schemaorg/HealthClub.py @@ -12,5 +12,5 @@ class HealthClub(HealthAndBeautyBusiness, SportsActivityLocation): See: https://schema.org/HealthClub Model depth: 5 """ - type_: str = Field(default="HealthClub", alias='@type', constant=True) + type_: str = Field(default="HealthClub", alias='@type', const=True) diff --git a/pydantic_schemaorg/HealthInsurancePlan.py b/pydantic_schemaorg/HealthInsurancePlan.py index ebf8345d..f4aa916c 100644 --- a/pydantic_schemaorg/HealthInsurancePlan.py +++ b/pydantic_schemaorg/HealthInsurancePlan.py @@ -15,7 +15,7 @@ class HealthInsurancePlan(Intangible): See: https://schema.org/HealthInsurancePlan Model depth: 3 """ - type_: str = Field(default="HealthInsurancePlan", alias='@type', constant=True) + type_: str = Field(default="HealthInsurancePlan", alias='@type', const=True) contactPoint: Optional[Union[List[Union['ContactPoint', str]], 'ContactPoint', str]] = Field( default=None, description="A contact point for a person or organization.", diff --git a/pydantic_schemaorg/HealthPlanCostSharingSpecification.py b/pydantic_schemaorg/HealthPlanCostSharingSpecification.py index 55cd73fc..e663a3e3 100644 --- a/pydantic_schemaorg/HealthPlanCostSharingSpecification.py +++ b/pydantic_schemaorg/HealthPlanCostSharingSpecification.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -15,7 +15,7 @@ class HealthPlanCostSharingSpecification(Intangible): See: https://schema.org/HealthPlanCostSharingSpecification Model depth: 3 """ - type_: str = Field(default="HealthPlanCostSharingSpecification", alias='@type', constant=True) + type_: str = Field(default="HealthPlanCostSharingSpecification", alias='@type', const=True) healthPlanCoinsuranceOption: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Whether the coinsurance applies before or after deductible, etc. TODO: Is this a closed" @@ -33,7 +33,7 @@ class HealthPlanCostSharingSpecification(Intangible): default=None, description="Whether the copay is before or after deductible, etc. TODO: Is this a closed set?", ) - healthPlanCoinsuranceRate: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + healthPlanCoinsuranceRate: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Whether The rate of coinsurance expressed as a number between 0.0 and 1.0.", ) diff --git a/pydantic_schemaorg/HealthPlanFormulary.py b/pydantic_schemaorg/HealthPlanFormulary.py index 517bcb35..b1d062bd 100644 --- a/pydantic_schemaorg/HealthPlanFormulary.py +++ b/pydantic_schemaorg/HealthPlanFormulary.py @@ -16,7 +16,7 @@ class HealthPlanFormulary(Intangible): See: https://schema.org/HealthPlanFormulary Model depth: 3 """ - type_: str = Field(default="HealthPlanFormulary", alias='@type', constant=True) + type_: str = Field(default="HealthPlanFormulary", alias='@type', const=True) offersPrescriptionByMail: Optional[Union[List[Union[StrictBool, 'Boolean', str]], StrictBool, 'Boolean', str]] = Field( default=None, description="Whether prescriptions can be delivered by mail.", diff --git a/pydantic_schemaorg/HealthPlanNetwork.py b/pydantic_schemaorg/HealthPlanNetwork.py index 8f3d1f3c..f22cbf7f 100644 --- a/pydantic_schemaorg/HealthPlanNetwork.py +++ b/pydantic_schemaorg/HealthPlanNetwork.py @@ -15,7 +15,7 @@ class HealthPlanNetwork(Intangible): See: https://schema.org/HealthPlanNetwork Model depth: 3 """ - type_: str = Field(default="HealthPlanNetwork", alias='@type', constant=True) + type_: str = Field(default="HealthPlanNetwork", alias='@type', const=True) healthPlanNetworkTier: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The tier(s) for this network.", diff --git a/pydantic_schemaorg/HealthTopicContent.py b/pydantic_schemaorg/HealthTopicContent.py index 8b661f3b..1cc92cd7 100644 --- a/pydantic_schemaorg/HealthTopicContent.py +++ b/pydantic_schemaorg/HealthTopicContent.py @@ -19,7 +19,7 @@ class HealthTopicContent(WebContent): See: https://schema.org/HealthTopicContent Model depth: 4 """ - type_: str = Field(default="HealthTopicContent", alias='@type', constant=True) + type_: str = Field(default="HealthTopicContent", alias='@type', const=True) hasHealthAspect: Optional[Union[List[Union['HealthAspectEnumeration', str]], 'HealthAspectEnumeration', str]] = Field( default=None, description="Indicates the aspect or aspects specifically addressed in some [[HealthTopicContent]]." diff --git a/pydantic_schemaorg/HearingImpairedSupported.py b/pydantic_schemaorg/HearingImpairedSupported.py index 3fabedce..24d30eee 100644 --- a/pydantic_schemaorg/HearingImpairedSupported.py +++ b/pydantic_schemaorg/HearingImpairedSupported.py @@ -11,5 +11,5 @@ class HearingImpairedSupported(ContactPointOption): See: https://schema.org/HearingImpairedSupported Model depth: 5 """ - type_: str = Field(default="HearingImpairedSupported", alias='@type', constant=True) + type_: str = Field(default="HearingImpairedSupported", alias='@type', const=True) diff --git a/pydantic_schemaorg/Hematologic.py b/pydantic_schemaorg/Hematologic.py index ccedbea7..107d6e2c 100644 --- a/pydantic_schemaorg/Hematologic.py +++ b/pydantic_schemaorg/Hematologic.py @@ -12,5 +12,5 @@ class Hematologic(MedicalSpecialty): See: https://schema.org/Hematologic Model depth: 6 """ - type_: str = Field(default="Hematologic", alias='@type', constant=True) + type_: str = Field(default="Hematologic", alias='@type', const=True) diff --git a/pydantic_schemaorg/HighSchool.py b/pydantic_schemaorg/HighSchool.py index ae46c44a..28cd7585 100644 --- a/pydantic_schemaorg/HighSchool.py +++ b/pydantic_schemaorg/HighSchool.py @@ -11,5 +11,5 @@ class HighSchool(EducationalOrganization): See: https://schema.org/HighSchool Model depth: 4 """ - type_: str = Field(default="HighSchool", alias='@type', constant=True) + type_: str = Field(default="HighSchool", alias='@type', const=True) diff --git a/pydantic_schemaorg/HinduDiet.py b/pydantic_schemaorg/HinduDiet.py index d78bcc4d..0ce09c44 100644 --- a/pydantic_schemaorg/HinduDiet.py +++ b/pydantic_schemaorg/HinduDiet.py @@ -11,5 +11,5 @@ class HinduDiet(RestrictedDiet): See: https://schema.org/HinduDiet Model depth: 5 """ - type_: str = Field(default="HinduDiet", alias='@type', constant=True) + type_: str = Field(default="HinduDiet", alias='@type', const=True) diff --git a/pydantic_schemaorg/HinduTemple.py b/pydantic_schemaorg/HinduTemple.py index 95050cdd..07b8905b 100644 --- a/pydantic_schemaorg/HinduTemple.py +++ b/pydantic_schemaorg/HinduTemple.py @@ -11,5 +11,5 @@ class HinduTemple(PlaceOfWorship): See: https://schema.org/HinduTemple Model depth: 5 """ - type_: str = Field(default="HinduTemple", alias='@type', constant=True) + type_: str = Field(default="HinduTemple", alias='@type', const=True) diff --git a/pydantic_schemaorg/HobbyShop.py b/pydantic_schemaorg/HobbyShop.py index de2f7316..f8b621c3 100644 --- a/pydantic_schemaorg/HobbyShop.py +++ b/pydantic_schemaorg/HobbyShop.py @@ -11,5 +11,5 @@ class HobbyShop(Store): See: https://schema.org/HobbyShop Model depth: 5 """ - type_: str = Field(default="HobbyShop", alias='@type', constant=True) + type_: str = Field(default="HobbyShop", alias='@type', const=True) diff --git a/pydantic_schemaorg/HomeAndConstructionBusiness.py b/pydantic_schemaorg/HomeAndConstructionBusiness.py index 57d8eed1..347d30ea 100644 --- a/pydantic_schemaorg/HomeAndConstructionBusiness.py +++ b/pydantic_schemaorg/HomeAndConstructionBusiness.py @@ -13,5 +13,5 @@ class HomeAndConstructionBusiness(LocalBusiness): See: https://schema.org/HomeAndConstructionBusiness Model depth: 4 """ - type_: str = Field(default="HomeAndConstructionBusiness", alias='@type', constant=True) + type_: str = Field(default="HomeAndConstructionBusiness", alias='@type', const=True) diff --git a/pydantic_schemaorg/HomeGoodsStore.py b/pydantic_schemaorg/HomeGoodsStore.py index cefa04b9..ecec8872 100644 --- a/pydantic_schemaorg/HomeGoodsStore.py +++ b/pydantic_schemaorg/HomeGoodsStore.py @@ -11,5 +11,5 @@ class HomeGoodsStore(Store): See: https://schema.org/HomeGoodsStore Model depth: 5 """ - type_: str = Field(default="HomeGoodsStore", alias='@type', constant=True) + type_: str = Field(default="HomeGoodsStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/Homeopathic.py b/pydantic_schemaorg/Homeopathic.py index 88afaa1f..d5c4d613 100644 --- a/pydantic_schemaorg/Homeopathic.py +++ b/pydantic_schemaorg/Homeopathic.py @@ -12,5 +12,5 @@ class Homeopathic(MedicineSystem): See: https://schema.org/Homeopathic Model depth: 6 """ - type_: str = Field(default="Homeopathic", alias='@type', constant=True) + type_: str = Field(default="Homeopathic", alias='@type', const=True) diff --git a/pydantic_schemaorg/Hospital.py b/pydantic_schemaorg/Hospital.py index 27f8cbcd..77dfa643 100644 --- a/pydantic_schemaorg/Hospital.py +++ b/pydantic_schemaorg/Hospital.py @@ -16,7 +16,7 @@ class Hospital(MedicalOrganization, EmergencyService, CivicStructure): See: https://schema.org/Hospital Model depth: 4 """ - type_: str = Field(default="Hospital", alias='@type', constant=True) + type_: str = Field(default="Hospital", alias='@type', const=True) medicalSpecialty: Optional[Union[List[Union['MedicalSpecialty', str]], 'MedicalSpecialty', str]] = Field( default=None, description="A medical specialty of the provider.", @@ -26,7 +26,7 @@ class Hospital(MedicalOrganization, EmergencyService, CivicStructure): description="Indicates data describing a hospital, e.g. a CDC [[CDCPMDRecord]] or as some kind of" "[[Dataset]].", ) - availableService: Optional[Union[List[Union['MedicalProcedure', 'MedicalTest', 'MedicalTherapy', str]], 'MedicalProcedure', 'MedicalTest', 'MedicalTherapy', str]] = Field( + availableService: Optional[Union[List[Union['MedicalTherapy', 'MedicalProcedure', 'MedicalTest', str]], 'MedicalTherapy', 'MedicalProcedure', 'MedicalTest', str]] = Field( default=None, description="A medical service available from this provider.", ) @@ -36,6 +36,6 @@ class Hospital(MedicalOrganization, EmergencyService, CivicStructure): from pydantic_schemaorg.MedicalSpecialty import MedicalSpecialty from pydantic_schemaorg.Dataset import Dataset from pydantic_schemaorg.CDCPMDRecord import CDCPMDRecord + from pydantic_schemaorg.MedicalTherapy import MedicalTherapy from pydantic_schemaorg.MedicalProcedure import MedicalProcedure from pydantic_schemaorg.MedicalTest import MedicalTest - from pydantic_schemaorg.MedicalTherapy import MedicalTherapy diff --git a/pydantic_schemaorg/Hostel.py b/pydantic_schemaorg/Hostel.py index 398848f9..f2a8721b 100644 --- a/pydantic_schemaorg/Hostel.py +++ b/pydantic_schemaorg/Hostel.py @@ -13,5 +13,5 @@ class Hostel(LodgingBusiness): See: https://schema.org/Hostel Model depth: 5 """ - type_: str = Field(default="Hostel", alias='@type', constant=True) + type_: str = Field(default="Hostel", alias='@type', const=True) diff --git a/pydantic_schemaorg/Hotel.py b/pydantic_schemaorg/Hotel.py index 83324453..77186312 100644 --- a/pydantic_schemaorg/Hotel.py +++ b/pydantic_schemaorg/Hotel.py @@ -14,5 +14,5 @@ class Hotel(LodgingBusiness): See: https://schema.org/Hotel Model depth: 5 """ - type_: str = Field(default="Hotel", alias='@type', constant=True) + type_: str = Field(default="Hotel", alias='@type', const=True) diff --git a/pydantic_schemaorg/HotelRoom.py b/pydantic_schemaorg/HotelRoom.py index e6e7d52c..e11e7449 100644 --- a/pydantic_schemaorg/HotelRoom.py +++ b/pydantic_schemaorg/HotelRoom.py @@ -15,7 +15,7 @@ class HotelRoom(Room): See: https://schema.org/HotelRoom Model depth: 5 """ - type_: str = Field(default="HotelRoom", alias='@type', constant=True) + type_: str = Field(default="HotelRoom", alias='@type', const=True) bed: Optional[Union[List[Union[str, 'Text', 'BedDetails', 'BedType']], str, 'Text', 'BedDetails', 'BedType']] = Field( default=None, description="The type of bed or beds included in the accommodation. For the single case of just one bed" diff --git a/pydantic_schemaorg/House.py b/pydantic_schemaorg/House.py index c7c7c029..c70b57da 100644 --- a/pydantic_schemaorg/House.py +++ b/pydantic_schemaorg/House.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -16,8 +16,8 @@ class House(Accommodation): See: https://schema.org/House Model depth: 4 """ - type_: str = Field(default="House", alias='@type', constant=True) - numberOfRooms: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + type_: str = Field(default="House", alias='@type', const=True) + numberOfRooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The number of rooms (excluding bathrooms and closets) of the accommodation or lodging" "business. Typical unit code(s): ROM for room or C62 for no unit. The type of room can be" diff --git a/pydantic_schemaorg/HousePainter.py b/pydantic_schemaorg/HousePainter.py index bddf31ac..c3d29c11 100644 --- a/pydantic_schemaorg/HousePainter.py +++ b/pydantic_schemaorg/HousePainter.py @@ -11,5 +11,5 @@ class HousePainter(HomeAndConstructionBusiness): See: https://schema.org/HousePainter Model depth: 5 """ - type_: str = Field(default="HousePainter", alias='@type', constant=True) + type_: str = Field(default="HousePainter", alias='@type', const=True) diff --git a/pydantic_schemaorg/HowItWorksHealthAspect.py b/pydantic_schemaorg/HowItWorksHealthAspect.py index 2ef9c9ac..919e3c40 100644 --- a/pydantic_schemaorg/HowItWorksHealthAspect.py +++ b/pydantic_schemaorg/HowItWorksHealthAspect.py @@ -12,5 +12,5 @@ class HowItWorksHealthAspect(HealthAspectEnumeration): See: https://schema.org/HowItWorksHealthAspect Model depth: 5 """ - type_: str = Field(default="HowItWorksHealthAspect", alias='@type', constant=True) + type_: str = Field(default="HowItWorksHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/HowOrWhereHealthAspect.py b/pydantic_schemaorg/HowOrWhereHealthAspect.py index 7c9c1533..39fdc6d1 100644 --- a/pydantic_schemaorg/HowOrWhereHealthAspect.py +++ b/pydantic_schemaorg/HowOrWhereHealthAspect.py @@ -12,5 +12,5 @@ class HowOrWhereHealthAspect(HealthAspectEnumeration): See: https://schema.org/HowOrWhereHealthAspect Model depth: 5 """ - type_: str = Field(default="HowOrWhereHealthAspect", alias='@type', constant=True) + type_: str = Field(default="HowOrWhereHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/HowTo.py b/pydantic_schemaorg/HowTo.py index 23cfc604..7af0e9cc 100644 --- a/pydantic_schemaorg/HowTo.py +++ b/pydantic_schemaorg/HowTo.py @@ -14,7 +14,7 @@ class HowTo(CreativeWork): See: https://schema.org/HowTo Model depth: 3 """ - type_: str = Field(default="HowTo", alias='@type', constant=True) + type_: str = Field(default="HowTo", alias='@type', const=True) yield_: Optional[Union[List[Union[str, 'Text', 'QuantitativeValue']], str, 'Text', 'QuantitativeValue']] = Field( default=None,alias="yield", description="The quantity that results by performing instructions. For example, a paper airplane," diff --git a/pydantic_schemaorg/HowToDirection.py b/pydantic_schemaorg/HowToDirection.py index 49d1f7cf..35bda562 100644 --- a/pydantic_schemaorg/HowToDirection.py +++ b/pydantic_schemaorg/HowToDirection.py @@ -16,7 +16,7 @@ class HowToDirection(ListItem, CreativeWork): See: https://schema.org/HowToDirection Model depth: 3 """ - type_: str = Field(default="HowToDirection", alias='@type', constant=True) + type_: str = Field(default="HowToDirection", alias='@type', const=True) duringMedia: Optional[Union[List[Union[AnyUrl, 'URL', 'MediaObject', str]], AnyUrl, 'URL', 'MediaObject', str]] = Field( default=None, description="A media object representing the circumstances while performing this direction.", diff --git a/pydantic_schemaorg/HowToItem.py b/pydantic_schemaorg/HowToItem.py index 03a00442..b434a9e9 100644 --- a/pydantic_schemaorg/HowToItem.py +++ b/pydantic_schemaorg/HowToItem.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -16,8 +16,8 @@ class HowToItem(ListItem): See: https://schema.org/HowToItem Model depth: 4 """ - type_: str = Field(default="HowToItem", alias='@type', constant=True) - requiredQuantity: Optional[Union[List[Union[int, float, 'Number', str, 'Text', 'QuantitativeValue']], int, float, 'Number', str, 'Text', 'QuantitativeValue']] = Field( + type_: str = Field(default="HowToItem", alias='@type', const=True) + requiredQuantity: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text', 'QuantitativeValue']], StrictInt, StrictFloat, 'Number', str, 'Text', 'QuantitativeValue']] = Field( default=None, description="The required quantity of the item(s).", ) diff --git a/pydantic_schemaorg/HowToSection.py b/pydantic_schemaorg/HowToSection.py index fe1fb750..01086038 100644 --- a/pydantic_schemaorg/HowToSection.py +++ b/pydantic_schemaorg/HowToSection.py @@ -17,7 +17,7 @@ class HowToSection(ItemList, ListItem, CreativeWork): See: https://schema.org/HowToSection Model depth: 3 """ - type_: str = Field(default="HowToSection", alias='@type', constant=True) + type_: str = Field(default="HowToSection", alias='@type', const=True) steps: Optional[Union[List[Union[str, 'Text', 'ItemList', 'CreativeWork']], str, 'Text', 'ItemList', 'CreativeWork']] = Field( default=None, description="A single step item (as HowToStep, text, document, video, etc.) or a HowToSection (originally" diff --git a/pydantic_schemaorg/HowToStep.py b/pydantic_schemaorg/HowToStep.py index 5bb4083c..cf007891 100644 --- a/pydantic_schemaorg/HowToStep.py +++ b/pydantic_schemaorg/HowToStep.py @@ -14,5 +14,5 @@ class HowToStep(ItemList, ListItem, CreativeWork): See: https://schema.org/HowToStep Model depth: 3 """ - type_: str = Field(default="HowToStep", alias='@type', constant=True) + type_: str = Field(default="HowToStep", alias='@type', const=True) diff --git a/pydantic_schemaorg/HowToSupply.py b/pydantic_schemaorg/HowToSupply.py index eb855cec..b03d6d7c 100644 --- a/pydantic_schemaorg/HowToSupply.py +++ b/pydantic_schemaorg/HowToSupply.py @@ -14,7 +14,7 @@ class HowToSupply(HowToItem): See: https://schema.org/HowToSupply Model depth: 5 """ - type_: str = Field(default="HowToSupply", alias='@type', constant=True) + type_: str = Field(default="HowToSupply", alias='@type', const=True) estimatedCost: Optional[Union[List[Union[str, 'Text', 'MonetaryAmount']], str, 'Text', 'MonetaryAmount']] = Field( default=None, description="The estimated cost of the supply or supplies consumed when performing instructions.", diff --git a/pydantic_schemaorg/HowToTip.py b/pydantic_schemaorg/HowToTip.py index 3fbda0d0..c56bcaa0 100644 --- a/pydantic_schemaorg/HowToTip.py +++ b/pydantic_schemaorg/HowToTip.py @@ -15,5 +15,5 @@ class HowToTip(ListItem, CreativeWork): See: https://schema.org/HowToTip Model depth: 3 """ - type_: str = Field(default="HowToTip", alias='@type', constant=True) + type_: str = Field(default="HowToTip", alias='@type', const=True) diff --git a/pydantic_schemaorg/HowToTool.py b/pydantic_schemaorg/HowToTool.py index 51742d4a..78db5c44 100644 --- a/pydantic_schemaorg/HowToTool.py +++ b/pydantic_schemaorg/HowToTool.py @@ -11,5 +11,5 @@ class HowToTool(HowToItem): See: https://schema.org/HowToTool Model depth: 5 """ - type_: str = Field(default="HowToTool", alias='@type', constant=True) + type_: str = Field(default="HowToTool", alias='@type', const=True) diff --git a/pydantic_schemaorg/HyperToc.py b/pydantic_schemaorg/HyperToc.py index 7c6468b4..a313086e 100644 --- a/pydantic_schemaorg/HyperToc.py +++ b/pydantic_schemaorg/HyperToc.py @@ -18,7 +18,7 @@ class HyperToc(CreativeWork): See: https://schema.org/HyperToc Model depth: 3 """ - type_: str = Field(default="HyperToc", alias='@type', constant=True) + type_: str = Field(default="HyperToc", alias='@type', const=True) associatedMedia: Optional[Union[List[Union['MediaObject', str]], 'MediaObject', str]] = Field( default=None, description="A media object that encodes this CreativeWork. This property is a synonym for encoding.", diff --git a/pydantic_schemaorg/HyperTocEntry.py b/pydantic_schemaorg/HyperTocEntry.py index dbf1e98b..62151de4 100644 --- a/pydantic_schemaorg/HyperTocEntry.py +++ b/pydantic_schemaorg/HyperTocEntry.py @@ -20,7 +20,7 @@ class HyperTocEntry(CreativeWork): See: https://schema.org/HyperTocEntry Model depth: 3 """ - type_: str = Field(default="HyperTocEntry", alias='@type', constant=True) + type_: str = Field(default="HyperTocEntry", alias='@type', const=True) utterances: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Text of an utterances (spoken words, lyrics etc.) that occurs at a certain section of" diff --git a/pydantic_schemaorg/IceCreamShop.py b/pydantic_schemaorg/IceCreamShop.py index 072172ce..075b338c 100644 --- a/pydantic_schemaorg/IceCreamShop.py +++ b/pydantic_schemaorg/IceCreamShop.py @@ -11,5 +11,5 @@ class IceCreamShop(FoodEstablishment): See: https://schema.org/IceCreamShop Model depth: 5 """ - type_: str = Field(default="IceCreamShop", alias='@type', constant=True) + type_: str = Field(default="IceCreamShop", alias='@type', const=True) diff --git a/pydantic_schemaorg/IgnoreAction.py b/pydantic_schemaorg/IgnoreAction.py index f7c87b9c..4f18f4ec 100644 --- a/pydantic_schemaorg/IgnoreAction.py +++ b/pydantic_schemaorg/IgnoreAction.py @@ -11,5 +11,5 @@ class IgnoreAction(AssessAction): See: https://schema.org/IgnoreAction Model depth: 4 """ - type_: str = Field(default="IgnoreAction", alias='@type', constant=True) + type_: str = Field(default="IgnoreAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/ImageGallery.py b/pydantic_schemaorg/ImageGallery.py index 6c4ec751..b356f35b 100644 --- a/pydantic_schemaorg/ImageGallery.py +++ b/pydantic_schemaorg/ImageGallery.py @@ -11,5 +11,5 @@ class ImageGallery(MediaGallery): See: https://schema.org/ImageGallery Model depth: 6 """ - type_: str = Field(default="ImageGallery", alias='@type', constant=True) + type_: str = Field(default="ImageGallery", alias='@type', const=True) diff --git a/pydantic_schemaorg/ImageObject.py b/pydantic_schemaorg/ImageObject.py index 786ac58c..11a12092 100644 --- a/pydantic_schemaorg/ImageObject.py +++ b/pydantic_schemaorg/ImageObject.py @@ -15,7 +15,7 @@ class ImageObject(MediaObject): See: https://schema.org/ImageObject Model depth: 4 """ - type_: str = Field(default="ImageObject", alias='@type', constant=True) + type_: str = Field(default="ImageObject", alias='@type', const=True) thumbnail: Optional[Union[List[Union['ImageObject', str]], 'ImageObject', str]] = Field( default=None, description="Thumbnail image for an image or video.", diff --git a/pydantic_schemaorg/ImageObjectSnapshot.py b/pydantic_schemaorg/ImageObjectSnapshot.py index b781ba86..7ead6f95 100644 --- a/pydantic_schemaorg/ImageObjectSnapshot.py +++ b/pydantic_schemaorg/ImageObjectSnapshot.py @@ -15,5 +15,5 @@ class ImageObjectSnapshot(ImageObject): See: https://schema.org/ImageObjectSnapshot Model depth: 5 """ - type_: str = Field(default="ImageObjectSnapshot", alias='@type', constant=True) + type_: str = Field(default="ImageObjectSnapshot", alias='@type', const=True) diff --git a/pydantic_schemaorg/ImagingTest.py b/pydantic_schemaorg/ImagingTest.py index 06c5f5d2..3dc5cc74 100644 --- a/pydantic_schemaorg/ImagingTest.py +++ b/pydantic_schemaorg/ImagingTest.py @@ -14,7 +14,7 @@ class ImagingTest(MedicalTest): See: https://schema.org/ImagingTest Model depth: 4 """ - type_: str = Field(default="ImagingTest", alias='@type', constant=True) + type_: str = Field(default="ImagingTest", alias='@type', const=True) imagingTechnique: Optional[Union[List[Union['MedicalImagingTechnique', str]], 'MedicalImagingTechnique', str]] = Field( default=None, description="Imaging technique used.", diff --git a/pydantic_schemaorg/InForce.py b/pydantic_schemaorg/InForce.py index e7c1985e..c622c527 100644 --- a/pydantic_schemaorg/InForce.py +++ b/pydantic_schemaorg/InForce.py @@ -11,5 +11,5 @@ class InForce(LegalForceStatus): See: https://schema.org/InForce Model depth: 6 """ - type_: str = Field(default="InForce", alias='@type', constant=True) + type_: str = Field(default="InForce", alias='@type', const=True) diff --git a/pydantic_schemaorg/InStock.py b/pydantic_schemaorg/InStock.py index a59b990d..60ed4068 100644 --- a/pydantic_schemaorg/InStock.py +++ b/pydantic_schemaorg/InStock.py @@ -11,5 +11,5 @@ class InStock(ItemAvailability): See: https://schema.org/InStock Model depth: 5 """ - type_: str = Field(default="InStock", alias='@type', constant=True) + type_: str = Field(default="InStock", alias='@type', const=True) diff --git a/pydantic_schemaorg/InStoreOnly.py b/pydantic_schemaorg/InStoreOnly.py index 5cf412eb..703f6ee9 100644 --- a/pydantic_schemaorg/InStoreOnly.py +++ b/pydantic_schemaorg/InStoreOnly.py @@ -11,5 +11,5 @@ class InStoreOnly(ItemAvailability): See: https://schema.org/InStoreOnly Model depth: 5 """ - type_: str = Field(default="InStoreOnly", alias='@type', constant=True) + type_: str = Field(default="InStoreOnly", alias='@type', const=True) diff --git a/pydantic_schemaorg/IndividualProduct.py b/pydantic_schemaorg/IndividualProduct.py index f70c82a9..e7321aa5 100644 --- a/pydantic_schemaorg/IndividualProduct.py +++ b/pydantic_schemaorg/IndividualProduct.py @@ -14,7 +14,7 @@ class IndividualProduct(Product): See: https://schema.org/IndividualProduct Model depth: 3 """ - type_: str = Field(default="IndividualProduct", alias='@type', constant=True) + type_: str = Field(default="IndividualProduct", alias='@type', const=True) serialNumber: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The serial number or any alphanumeric identifier of a particular product. When attached" diff --git a/pydantic_schemaorg/Infectious.py b/pydantic_schemaorg/Infectious.py index b734892d..627e1338 100644 --- a/pydantic_schemaorg/Infectious.py +++ b/pydantic_schemaorg/Infectious.py @@ -12,5 +12,5 @@ class Infectious(MedicalSpecialty): See: https://schema.org/Infectious Model depth: 6 """ - type_: str = Field(default="Infectious", alias='@type', constant=True) + type_: str = Field(default="Infectious", alias='@type', const=True) diff --git a/pydantic_schemaorg/InfectiousAgentClass.py b/pydantic_schemaorg/InfectiousAgentClass.py index d778c55c..94fc9517 100644 --- a/pydantic_schemaorg/InfectiousAgentClass.py +++ b/pydantic_schemaorg/InfectiousAgentClass.py @@ -11,5 +11,5 @@ class InfectiousAgentClass(MedicalEnumeration): See: https://schema.org/InfectiousAgentClass Model depth: 5 """ - type_: str = Field(default="InfectiousAgentClass", alias='@type', constant=True) + type_: str = Field(default="InfectiousAgentClass", alias='@type', const=True) diff --git a/pydantic_schemaorg/InfectiousDisease.py b/pydantic_schemaorg/InfectiousDisease.py index 88799e69..8f536461 100644 --- a/pydantic_schemaorg/InfectiousDisease.py +++ b/pydantic_schemaorg/InfectiousDisease.py @@ -17,7 +17,7 @@ class InfectiousDisease(MedicalCondition): See: https://schema.org/InfectiousDisease Model depth: 4 """ - type_: str = Field(default="InfectiousDisease", alias='@type', constant=True) + type_: str = Field(default="InfectiousDisease", alias='@type', const=True) transmissionMethod: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="How the disease spreads, either as a route or vector, for example 'direct contact', 'Aedes" diff --git a/pydantic_schemaorg/InformAction.py b/pydantic_schemaorg/InformAction.py index 01664281..4d97b5fb 100644 --- a/pydantic_schemaorg/InformAction.py +++ b/pydantic_schemaorg/InformAction.py @@ -15,7 +15,7 @@ class InformAction(CommunicateAction): See: https://schema.org/InformAction Model depth: 5 """ - type_: str = Field(default="InformAction", alias='@type', constant=True) + type_: str = Field(default="InformAction", alias='@type', const=True) event: Optional[Union[List[Union['Event', str]], 'Event', str]] = Field( default=None, description="Upcoming or past event associated with this place, organization, or action.", diff --git a/pydantic_schemaorg/IngredientsHealthAspect.py b/pydantic_schemaorg/IngredientsHealthAspect.py index 25515533..4d230319 100644 --- a/pydantic_schemaorg/IngredientsHealthAspect.py +++ b/pydantic_schemaorg/IngredientsHealthAspect.py @@ -11,5 +11,5 @@ class IngredientsHealthAspect(HealthAspectEnumeration): See: https://schema.org/IngredientsHealthAspect Model depth: 5 """ - type_: str = Field(default="IngredientsHealthAspect", alias='@type', constant=True) + type_: str = Field(default="IngredientsHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/InsertAction.py b/pydantic_schemaorg/InsertAction.py index eaec05a6..13653ff8 100644 --- a/pydantic_schemaorg/InsertAction.py +++ b/pydantic_schemaorg/InsertAction.py @@ -14,7 +14,7 @@ class InsertAction(AddAction): See: https://schema.org/InsertAction Model depth: 5 """ - type_: str = Field(default="InsertAction", alias='@type', constant=True) + type_: str = Field(default="InsertAction", alias='@type', const=True) toLocation: Optional[Union[List[Union['Place', str]], 'Place', str]] = Field( default=None, description="A sub property of location. The final location of the object or the agent after the action.", diff --git a/pydantic_schemaorg/InstallAction.py b/pydantic_schemaorg/InstallAction.py index 89cb2a38..60d79f95 100644 --- a/pydantic_schemaorg/InstallAction.py +++ b/pydantic_schemaorg/InstallAction.py @@ -11,5 +11,5 @@ class InstallAction(ConsumeAction): See: https://schema.org/InstallAction Model depth: 4 """ - type_: str = Field(default="InstallAction", alias='@type', constant=True) + type_: str = Field(default="InstallAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Installment.py b/pydantic_schemaorg/Installment.py index 3050b54a..4875ecfe 100644 --- a/pydantic_schemaorg/Installment.py +++ b/pydantic_schemaorg/Installment.py @@ -11,5 +11,5 @@ class Installment(PriceComponentTypeEnumeration): See: https://schema.org/Installment Model depth: 5 """ - type_: str = Field(default="Installment", alias='@type', constant=True) + type_: str = Field(default="Installment", alias='@type', const=True) diff --git a/pydantic_schemaorg/InsuranceAgency.py b/pydantic_schemaorg/InsuranceAgency.py index fbb9bc71..e0017688 100644 --- a/pydantic_schemaorg/InsuranceAgency.py +++ b/pydantic_schemaorg/InsuranceAgency.py @@ -11,5 +11,5 @@ class InsuranceAgency(FinancialService): See: https://schema.org/InsuranceAgency Model depth: 5 """ - type_: str = Field(default="InsuranceAgency", alias='@type', constant=True) + type_: str = Field(default="InsuranceAgency", alias='@type', const=True) diff --git a/pydantic_schemaorg/Intangible.py b/pydantic_schemaorg/Intangible.py index f07e9c30..f3ef6d00 100644 --- a/pydantic_schemaorg/Intangible.py +++ b/pydantic_schemaorg/Intangible.py @@ -12,5 +12,5 @@ class Intangible(Thing): See: https://schema.org/Intangible Model depth: 2 """ - type_: str = Field(default="Intangible", alias='@type', constant=True) + type_: str = Field(default="Intangible", alias='@type', const=True) diff --git a/pydantic_schemaorg/Integer.py b/pydantic_schemaorg/Integer.py index 93abc778..b37dddc0 100644 --- a/pydantic_schemaorg/Integer.py +++ b/pydantic_schemaorg/Integer.py @@ -11,5 +11,5 @@ class Integer(Number): See: https://schema.org/Integer Model depth: 6 """ - type_: str = Field(default="Integer", alias='@type', constant=True) + type_: str = Field(default="Integer", alias='@type', const=True) diff --git a/pydantic_schemaorg/InteractAction.py b/pydantic_schemaorg/InteractAction.py index 847f736d..e7de81be 100644 --- a/pydantic_schemaorg/InteractAction.py +++ b/pydantic_schemaorg/InteractAction.py @@ -11,5 +11,5 @@ class InteractAction(Action): See: https://schema.org/InteractAction Model depth: 3 """ - type_: str = Field(default="InteractAction", alias='@type', constant=True) + type_: str = Field(default="InteractAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/InteractionCounter.py b/pydantic_schemaorg/InteractionCounter.py index 7b67021b..3c9719fa 100644 --- a/pydantic_schemaorg/InteractionCounter.py +++ b/pydantic_schemaorg/InteractionCounter.py @@ -16,7 +16,7 @@ class InteractionCounter(StructuredValue): See: https://schema.org/InteractionCounter Model depth: 4 """ - type_: str = Field(default="InteractionCounter", alias='@type', constant=True) + type_: str = Field(default="InteractionCounter", alias='@type', const=True) userInteractionCount: Optional[Union[List[Union[int, 'Integer', str]], int, 'Integer', str]] = Field( default=None, description="The number of interactions for the CreativeWork using the WebSite or SoftwareApplication.", @@ -26,7 +26,7 @@ class InteractionCounter(StructuredValue): description="The Action representing the type of interaction. For up votes, +1s, etc. use [[LikeAction]]." "For down votes use [[DislikeAction]]. Otherwise, use the most specific Action.", ) - location: Optional[Union[List[Union[str, 'Text', 'Place', 'VirtualLocation', 'PostalAddress']], str, 'Text', 'Place', 'VirtualLocation', 'PostalAddress']] = Field( + location: Optional[Union[List[Union[str, 'Text', 'PostalAddress', 'Place', 'VirtualLocation']], str, 'Text', 'PostalAddress', 'Place', 'VirtualLocation']] = Field( default=None, description="The location of, for example, where an event is happening, where an organization is located," "or where an action takes place.", @@ -59,9 +59,9 @@ class InteractionCounter(StructuredValue): from pydantic_schemaorg.Integer import Integer from pydantic_schemaorg.Action import Action from pydantic_schemaorg.Text import Text + from pydantic_schemaorg.PostalAddress import PostalAddress from pydantic_schemaorg.Place import Place from pydantic_schemaorg.VirtualLocation import VirtualLocation - from pydantic_schemaorg.PostalAddress import PostalAddress from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Time import Time from pydantic_schemaorg.SoftwareApplication import SoftwareApplication diff --git a/pydantic_schemaorg/InternationalTrial.py b/pydantic_schemaorg/InternationalTrial.py index 3ad9b601..3776f26e 100644 --- a/pydantic_schemaorg/InternationalTrial.py +++ b/pydantic_schemaorg/InternationalTrial.py @@ -11,5 +11,5 @@ class InternationalTrial(MedicalTrialDesign): See: https://schema.org/InternationalTrial Model depth: 6 """ - type_: str = Field(default="InternationalTrial", alias='@type', constant=True) + type_: str = Field(default="InternationalTrial", alias='@type', const=True) diff --git a/pydantic_schemaorg/InternetCafe.py b/pydantic_schemaorg/InternetCafe.py index c866b423..8217fedd 100644 --- a/pydantic_schemaorg/InternetCafe.py +++ b/pydantic_schemaorg/InternetCafe.py @@ -11,5 +11,5 @@ class InternetCafe(LocalBusiness): See: https://schema.org/InternetCafe Model depth: 4 """ - type_: str = Field(default="InternetCafe", alias='@type', constant=True) + type_: str = Field(default="InternetCafe", alias='@type', const=True) diff --git a/pydantic_schemaorg/InvestmentFund.py b/pydantic_schemaorg/InvestmentFund.py index 86772f3a..c50d96f3 100644 --- a/pydantic_schemaorg/InvestmentFund.py +++ b/pydantic_schemaorg/InvestmentFund.py @@ -12,5 +12,5 @@ class InvestmentFund(InvestmentOrDeposit): See: https://schema.org/InvestmentFund Model depth: 6 """ - type_: str = Field(default="InvestmentFund", alias='@type', constant=True) + type_: str = Field(default="InvestmentFund", alias='@type', const=True) diff --git a/pydantic_schemaorg/InvestmentOrDeposit.py b/pydantic_schemaorg/InvestmentOrDeposit.py index fbf65ca1..590514f2 100644 --- a/pydantic_schemaorg/InvestmentOrDeposit.py +++ b/pydantic_schemaorg/InvestmentOrDeposit.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -16,8 +16,8 @@ class InvestmentOrDeposit(FinancialProduct): See: https://schema.org/InvestmentOrDeposit Model depth: 5 """ - type_: str = Field(default="InvestmentOrDeposit", alias='@type', constant=True) - amount: Optional[Union[List[Union[int, float, 'Number', 'MonetaryAmount', str]], int, float, 'Number', 'MonetaryAmount', str]] = Field( + type_: str = Field(default="InvestmentOrDeposit", alias='@type', const=True) + amount: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]], StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]] = Field( default=None, description="The amount of money.", ) diff --git a/pydantic_schemaorg/InviteAction.py b/pydantic_schemaorg/InviteAction.py index 4fef874b..a7550dd9 100644 --- a/pydantic_schemaorg/InviteAction.py +++ b/pydantic_schemaorg/InviteAction.py @@ -14,7 +14,7 @@ class InviteAction(CommunicateAction): See: https://schema.org/InviteAction Model depth: 5 """ - type_: str = Field(default="InviteAction", alias='@type', constant=True) + type_: str = Field(default="InviteAction", alias='@type', const=True) event: Optional[Union[List[Union['Event', str]], 'Event', str]] = Field( default=None, description="Upcoming or past event associated with this place, organization, or action.", diff --git a/pydantic_schemaorg/Invoice.py b/pydantic_schemaorg/Invoice.py index efeb464d..d122ff20 100644 --- a/pydantic_schemaorg/Invoice.py +++ b/pydantic_schemaorg/Invoice.py @@ -16,7 +16,7 @@ class Invoice(Intangible): See: https://schema.org/Invoice Model depth: 3 """ - type_: str = Field(default="Invoice", alias='@type', constant=True) + type_: str = Field(default="Invoice", alias='@type', const=True) paymentDue: Optional[Union[List[Union[datetime, 'DateTime', str]], datetime, 'DateTime', str]] = Field( default=None, description="The date that payment is due.", @@ -33,7 +33,7 @@ class Invoice(Intangible): default=None, description="The time interval used to compute the invoice.", ) - category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']], AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']] = Field( + category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']], AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']] = Field( default=None, description="A category for the item. Greater signs or slashes can be used to informally indicate a" "category hierarchy.", @@ -42,11 +42,11 @@ class Invoice(Intangible): default=None, description="The status of payment; whether the invoice has been paid or not.", ) - customer: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + customer: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="Party placing the order or paying the invoice.", ) - totalPaymentDue: Optional[Union[List[Union['PriceSpecification', 'MonetaryAmount', str]], 'PriceSpecification', 'MonetaryAmount', str]] = Field( + totalPaymentDue: Optional[Union[List[Union['MonetaryAmount', 'PriceSpecification', str]], 'MonetaryAmount', 'PriceSpecification', str]] = Field( default=None, description="The total amount due.", ) @@ -67,11 +67,11 @@ class Invoice(Intangible): default=None, description="A number that confirms the given order or payment has been received.", ) - minimumPaymentDue: Optional[Union[List[Union['PriceSpecification', 'MonetaryAmount', str]], 'PriceSpecification', 'MonetaryAmount', str]] = Field( + minimumPaymentDue: Optional[Union[List[Union['MonetaryAmount', 'PriceSpecification', str]], 'MonetaryAmount', 'PriceSpecification', str]] = Field( default=None, description="The minimum payment required at this time.", ) - provider: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + provider: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The service provider, service operator, or service performer; the goods producer." "Another party (a seller) may offer those services or goods on behalf of the provider." @@ -81,7 +81,7 @@ class Invoice(Intangible): default=None, description="The name of the credit card or other method of payment for the order.", ) - broker: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + broker: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="An entity that arranges for an exchange between a buyer and a seller. In most cases a broker" "never acquires or releases ownership of a product or service involved in an exchange." @@ -95,13 +95,13 @@ class Invoice(Intangible): from pydantic_schemaorg.Text import Text from pydantic_schemaorg.Duration import Duration from pydantic_schemaorg.URL import URL - from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.PhysicalActivityCategory import PhysicalActivityCategory + from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.PaymentStatusType import PaymentStatusType - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person - from pydantic_schemaorg.PriceSpecification import PriceSpecification + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.MonetaryAmount import MonetaryAmount + from pydantic_schemaorg.PriceSpecification import PriceSpecification from pydantic_schemaorg.Date import Date from pydantic_schemaorg.Order import Order from pydantic_schemaorg.PaymentMethod import PaymentMethod diff --git a/pydantic_schemaorg/InvoicePrice.py b/pydantic_schemaorg/InvoicePrice.py index e2439ec3..fb5265f3 100644 --- a/pydantic_schemaorg/InvoicePrice.py +++ b/pydantic_schemaorg/InvoicePrice.py @@ -11,5 +11,5 @@ class InvoicePrice(PriceTypeEnumeration): See: https://schema.org/InvoicePrice Model depth: 5 """ - type_: str = Field(default="InvoicePrice", alias='@type', constant=True) + type_: str = Field(default="InvoicePrice", alias='@type', const=True) diff --git a/pydantic_schemaorg/ItemAvailability.py b/pydantic_schemaorg/ItemAvailability.py index ca988b38..2f49dc9f 100644 --- a/pydantic_schemaorg/ItemAvailability.py +++ b/pydantic_schemaorg/ItemAvailability.py @@ -11,5 +11,5 @@ class ItemAvailability(Enumeration): See: https://schema.org/ItemAvailability Model depth: 4 """ - type_: str = Field(default="ItemAvailability", alias='@type', constant=True) + type_: str = Field(default="ItemAvailability", alias='@type', const=True) diff --git a/pydantic_schemaorg/ItemList.py b/pydantic_schemaorg/ItemList.py index 563ab30d..11fa3359 100644 --- a/pydantic_schemaorg/ItemList.py +++ b/pydantic_schemaorg/ItemList.py @@ -15,7 +15,7 @@ class ItemList(Intangible): See: https://schema.org/ItemList Model depth: 3 """ - type_: str = Field(default="ItemList", alias='@type', constant=True) + type_: str = Field(default="ItemList", alias='@type', const=True) itemListElement: Optional[Union[List[Union[str, 'Text', 'ListItem', 'Thing']], str, 'Text', 'ListItem', 'Thing']] = Field( default=None, description="For itemListElement values, you can use simple strings (e.g. \"Peter\", \"Paul\"," diff --git a/pydantic_schemaorg/ItemListOrderAscending.py b/pydantic_schemaorg/ItemListOrderAscending.py index d4397837..4336e51f 100644 --- a/pydantic_schemaorg/ItemListOrderAscending.py +++ b/pydantic_schemaorg/ItemListOrderAscending.py @@ -11,5 +11,5 @@ class ItemListOrderAscending(ItemListOrderType): See: https://schema.org/ItemListOrderAscending Model depth: 5 """ - type_: str = Field(default="ItemListOrderAscending", alias='@type', constant=True) + type_: str = Field(default="ItemListOrderAscending", alias='@type', const=True) diff --git a/pydantic_schemaorg/ItemListOrderDescending.py b/pydantic_schemaorg/ItemListOrderDescending.py index 80af994f..89e3b80a 100644 --- a/pydantic_schemaorg/ItemListOrderDescending.py +++ b/pydantic_schemaorg/ItemListOrderDescending.py @@ -11,5 +11,5 @@ class ItemListOrderDescending(ItemListOrderType): See: https://schema.org/ItemListOrderDescending Model depth: 5 """ - type_: str = Field(default="ItemListOrderDescending", alias='@type', constant=True) + type_: str = Field(default="ItemListOrderDescending", alias='@type', const=True) diff --git a/pydantic_schemaorg/ItemListOrderType.py b/pydantic_schemaorg/ItemListOrderType.py index 50761c94..9dd1fe98 100644 --- a/pydantic_schemaorg/ItemListOrderType.py +++ b/pydantic_schemaorg/ItemListOrderType.py @@ -11,5 +11,5 @@ class ItemListOrderType(Enumeration): See: https://schema.org/ItemListOrderType Model depth: 4 """ - type_: str = Field(default="ItemListOrderType", alias='@type', constant=True) + type_: str = Field(default="ItemListOrderType", alias='@type', const=True) diff --git a/pydantic_schemaorg/ItemListUnordered.py b/pydantic_schemaorg/ItemListUnordered.py index 1cfca6cb..01a924e5 100644 --- a/pydantic_schemaorg/ItemListUnordered.py +++ b/pydantic_schemaorg/ItemListUnordered.py @@ -11,5 +11,5 @@ class ItemListUnordered(ItemListOrderType): See: https://schema.org/ItemListUnordered Model depth: 5 """ - type_: str = Field(default="ItemListUnordered", alias='@type', constant=True) + type_: str = Field(default="ItemListUnordered", alias='@type', const=True) diff --git a/pydantic_schemaorg/ItemPage.py b/pydantic_schemaorg/ItemPage.py index e02738c2..c1a13331 100644 --- a/pydantic_schemaorg/ItemPage.py +++ b/pydantic_schemaorg/ItemPage.py @@ -11,5 +11,5 @@ class ItemPage(WebPage): See: https://schema.org/ItemPage Model depth: 4 """ - type_: str = Field(default="ItemPage", alias='@type', constant=True) + type_: str = Field(default="ItemPage", alias='@type', const=True) diff --git a/pydantic_schemaorg/JewelryStore.py b/pydantic_schemaorg/JewelryStore.py index baf989b8..ca73cb6d 100644 --- a/pydantic_schemaorg/JewelryStore.py +++ b/pydantic_schemaorg/JewelryStore.py @@ -11,5 +11,5 @@ class JewelryStore(Store): See: https://schema.org/JewelryStore Model depth: 5 """ - type_: str = Field(default="JewelryStore", alias='@type', constant=True) + type_: str = Field(default="JewelryStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/JobPosting.py b/pydantic_schemaorg/JobPosting.py index 53e96a61..a5d6ef53 100644 --- a/pydantic_schemaorg/JobPosting.py +++ b/pydantic_schemaorg/JobPosting.py @@ -2,8 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from pydantic import AnyUrl, StrictBool -from decimal import Decimal +from pydantic import AnyUrl, StrictBool, StrictInt, StrictFloat from datetime import date, datetime @@ -17,7 +16,7 @@ class JobPosting(Intangible): See: https://schema.org/JobPosting Model depth: 3 """ - type_: str = Field(default="JobPosting", alias='@type', constant=True) + type_: str = Field(default="JobPosting", alias='@type', const=True) experienceRequirements: Optional[Union[List[Union[str, 'Text', 'OccupationalExperienceRequirements']], str, 'Text', 'OccupationalExperienceRequirements']] = Field( default=None, description="Description of skills and experience needed for the position or Occupation.", @@ -41,7 +40,7 @@ class JobPosting(Intangible): description="A statement of knowledge, skill, ability, task or any other assertion expressing a competency" "that is desired or required to fulfill this role or to work in this occupation.", ) - estimatedSalary: Optional[Union[List[Union[int, float, 'Number', 'MonetaryAmountDistribution', 'MonetaryAmount', str]], int, float, 'Number', 'MonetaryAmountDistribution', 'MonetaryAmount', str]] = Field( + estimatedSalary: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'MonetaryAmountDistribution', 'MonetaryAmount', str]], StrictInt, StrictFloat, 'Number', 'MonetaryAmountDistribution', 'MonetaryAmount', str]] = Field( default=None, description="An estimated salary for a job posting or occupation, based on a variety of variables including," "but not limited to industry, job title, and location. Estimated salaries are often computed" @@ -139,7 +138,7 @@ class JobPosting(Intangible): description="Indicates the department, unit and/or facility where the employee reports and/or in" "which the job is to be performed.", ) - baseSalary: Optional[Union[List[Union[int, float, 'Number', 'PriceSpecification', 'MonetaryAmount', str]], int, float, 'Number', 'PriceSpecification', 'MonetaryAmount', str]] = Field( + baseSalary: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'MonetaryAmount', 'PriceSpecification', str]], StrictInt, StrictFloat, 'Number', 'MonetaryAmount', 'PriceSpecification', str]] = Field( default=None, description="The base salary of the job or of an employee in an EmployeeRole.", ) diff --git a/pydantic_schemaorg/JoinAction.py b/pydantic_schemaorg/JoinAction.py index 02598eeb..49f3cd0e 100644 --- a/pydantic_schemaorg/JoinAction.py +++ b/pydantic_schemaorg/JoinAction.py @@ -18,7 +18,7 @@ class JoinAction(InteractAction): See: https://schema.org/JoinAction Model depth: 4 """ - type_: str = Field(default="JoinAction", alias='@type', constant=True) + type_: str = Field(default="JoinAction", alias='@type', const=True) event: Optional[Union[List[Union['Event', str]], 'Event', str]] = Field( default=None, description="Upcoming or past event associated with this place, organization, or action.", diff --git a/pydantic_schemaorg/Joint.py b/pydantic_schemaorg/Joint.py index 5833a9aa..f3728f12 100644 --- a/pydantic_schemaorg/Joint.py +++ b/pydantic_schemaorg/Joint.py @@ -14,7 +14,7 @@ class Joint(AnatomicalStructure): See: https://schema.org/Joint Model depth: 4 """ - type_: str = Field(default="Joint", alias='@type', constant=True) + type_: str = Field(default="Joint", alias='@type', const=True) functionalClass: Optional[Union[List[Union[str, 'Text', 'MedicalEntity']], str, 'Text', 'MedicalEntity']] = Field( default=None, description="The degree of mobility the joint allows.", diff --git a/pydantic_schemaorg/KosherDiet.py b/pydantic_schemaorg/KosherDiet.py index 0fceefb5..fc180053 100644 --- a/pydantic_schemaorg/KosherDiet.py +++ b/pydantic_schemaorg/KosherDiet.py @@ -11,5 +11,5 @@ class KosherDiet(RestrictedDiet): See: https://schema.org/KosherDiet Model depth: 5 """ - type_: str = Field(default="KosherDiet", alias='@type', constant=True) + type_: str = Field(default="KosherDiet", alias='@type', const=True) diff --git a/pydantic_schemaorg/LaboratoryScience.py b/pydantic_schemaorg/LaboratoryScience.py index 6dac9832..71b9788b 100644 --- a/pydantic_schemaorg/LaboratoryScience.py +++ b/pydantic_schemaorg/LaboratoryScience.py @@ -12,5 +12,5 @@ class LaboratoryScience(MedicalSpecialty): See: https://schema.org/LaboratoryScience Model depth: 6 """ - type_: str = Field(default="LaboratoryScience", alias='@type', constant=True) + type_: str = Field(default="LaboratoryScience", alias='@type', const=True) diff --git a/pydantic_schemaorg/LakeBodyOfWater.py b/pydantic_schemaorg/LakeBodyOfWater.py index 1821b5d7..584d0b3b 100644 --- a/pydantic_schemaorg/LakeBodyOfWater.py +++ b/pydantic_schemaorg/LakeBodyOfWater.py @@ -11,5 +11,5 @@ class LakeBodyOfWater(BodyOfWater): See: https://schema.org/LakeBodyOfWater Model depth: 5 """ - type_: str = Field(default="LakeBodyOfWater", alias='@type', constant=True) + type_: str = Field(default="LakeBodyOfWater", alias='@type', const=True) diff --git a/pydantic_schemaorg/Landform.py b/pydantic_schemaorg/Landform.py index 0044e40b..3776c049 100644 --- a/pydantic_schemaorg/Landform.py +++ b/pydantic_schemaorg/Landform.py @@ -14,5 +14,5 @@ class Landform(Place): See: https://schema.org/Landform Model depth: 3 """ - type_: str = Field(default="Landform", alias='@type', constant=True) + type_: str = Field(default="Landform", alias='@type', const=True) diff --git a/pydantic_schemaorg/LandmarksOrHistoricalBuildings.py b/pydantic_schemaorg/LandmarksOrHistoricalBuildings.py index 2c4ad2ea..6adc1ccf 100644 --- a/pydantic_schemaorg/LandmarksOrHistoricalBuildings.py +++ b/pydantic_schemaorg/LandmarksOrHistoricalBuildings.py @@ -11,5 +11,5 @@ class LandmarksOrHistoricalBuildings(Place): See: https://schema.org/LandmarksOrHistoricalBuildings Model depth: 3 """ - type_: str = Field(default="LandmarksOrHistoricalBuildings", alias='@type', constant=True) + type_: str = Field(default="LandmarksOrHistoricalBuildings", alias='@type', const=True) diff --git a/pydantic_schemaorg/Language.py b/pydantic_schemaorg/Language.py index 55a90248..f2080a56 100644 --- a/pydantic_schemaorg/Language.py +++ b/pydantic_schemaorg/Language.py @@ -15,5 +15,5 @@ class Language(Intangible): See: https://schema.org/Language Model depth: 3 """ - type_: str = Field(default="Language", alias='@type', constant=True) + type_: str = Field(default="Language", alias='@type', const=True) diff --git a/pydantic_schemaorg/LaserDiscFormat.py b/pydantic_schemaorg/LaserDiscFormat.py index 1f6b7290..812687da 100644 --- a/pydantic_schemaorg/LaserDiscFormat.py +++ b/pydantic_schemaorg/LaserDiscFormat.py @@ -11,5 +11,5 @@ class LaserDiscFormat(MusicReleaseFormatType): See: https://schema.org/LaserDiscFormat Model depth: 5 """ - type_: str = Field(default="LaserDiscFormat", alias='@type', constant=True) + type_: str = Field(default="LaserDiscFormat", alias='@type', const=True) diff --git a/pydantic_schemaorg/LearningResource.py b/pydantic_schemaorg/LearningResource.py index a324b21b..b558698f 100644 --- a/pydantic_schemaorg/LearningResource.py +++ b/pydantic_schemaorg/LearningResource.py @@ -21,7 +21,7 @@ class LearningResource(CreativeWork): See: https://schema.org/LearningResource Model depth: 3 """ - type_: str = Field(default="LearningResource", alias='@type', constant=True) + type_: str = Field(default="LearningResource", alias='@type', const=True) educationalAlignment: Optional[Union[List[Union['AlignmentObject', str]], 'AlignmentObject', str]] = Field( default=None, description="An alignment to an established educational framework. This property should not be used" diff --git a/pydantic_schemaorg/LeaveAction.py b/pydantic_schemaorg/LeaveAction.py index a4876cb5..8d0271dd 100644 --- a/pydantic_schemaorg/LeaveAction.py +++ b/pydantic_schemaorg/LeaveAction.py @@ -16,7 +16,7 @@ class LeaveAction(InteractAction): See: https://schema.org/LeaveAction Model depth: 4 """ - type_: str = Field(default="LeaveAction", alias='@type', constant=True) + type_: str = Field(default="LeaveAction", alias='@type', const=True) event: Optional[Union[List[Union['Event', str]], 'Event', str]] = Field( default=None, description="Upcoming or past event associated with this place, organization, or action.", diff --git a/pydantic_schemaorg/LeftHandDriving.py b/pydantic_schemaorg/LeftHandDriving.py index d4121690..c5f0fc8f 100644 --- a/pydantic_schemaorg/LeftHandDriving.py +++ b/pydantic_schemaorg/LeftHandDriving.py @@ -12,5 +12,5 @@ class LeftHandDriving(SteeringPositionValue): See: https://schema.org/LeftHandDriving Model depth: 6 """ - type_: str = Field(default="LeftHandDriving", alias='@type', constant=True) + type_: str = Field(default="LeftHandDriving", alias='@type', const=True) diff --git a/pydantic_schemaorg/LegalForceStatus.py b/pydantic_schemaorg/LegalForceStatus.py index 1f8a5693..acea824a 100644 --- a/pydantic_schemaorg/LegalForceStatus.py +++ b/pydantic_schemaorg/LegalForceStatus.py @@ -11,5 +11,5 @@ class LegalForceStatus(StatusEnumeration): See: https://schema.org/LegalForceStatus Model depth: 5 """ - type_: str = Field(default="LegalForceStatus", alias='@type', constant=True) + type_: str = Field(default="LegalForceStatus", alias='@type', const=True) diff --git a/pydantic_schemaorg/LegalService.py b/pydantic_schemaorg/LegalService.py index f0eb9297..f4369c7a 100644 --- a/pydantic_schemaorg/LegalService.py +++ b/pydantic_schemaorg/LegalService.py @@ -13,5 +13,5 @@ class LegalService(LocalBusiness): See: https://schema.org/LegalService Model depth: 4 """ - type_: str = Field(default="LegalService", alias='@type', constant=True) + type_: str = Field(default="LegalService", alias='@type', const=True) diff --git a/pydantic_schemaorg/LegalValueLevel.py b/pydantic_schemaorg/LegalValueLevel.py index 7ac2447f..3639e2b0 100644 --- a/pydantic_schemaorg/LegalValueLevel.py +++ b/pydantic_schemaorg/LegalValueLevel.py @@ -11,5 +11,5 @@ class LegalValueLevel(Enumeration): See: https://schema.org/LegalValueLevel Model depth: 4 """ - type_: str = Field(default="LegalValueLevel", alias='@type', constant=True) + type_: str = Field(default="LegalValueLevel", alias='@type', const=True) diff --git a/pydantic_schemaorg/Legislation.py b/pydantic_schemaorg/Legislation.py index e5671b81..6d9e5fd8 100644 --- a/pydantic_schemaorg/Legislation.py +++ b/pydantic_schemaorg/Legislation.py @@ -17,8 +17,8 @@ class Legislation(CreativeWork): See: https://schema.org/Legislation Model depth: 3 """ - type_: str = Field(default="Legislation", alias='@type', constant=True) - legislationPassedBy: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + type_: str = Field(default="Legislation", alias='@type', const=True) + legislationPassedBy: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The person or organization that originally passed or made the law : typically parliament" "(for primary legislation) or government (for secondary legislation). This indicates" @@ -69,7 +69,7 @@ class Legislation(CreativeWork): description="Indicates a legal jurisdiction, e.g. of some legislation, or where some government" "service is based.", ) - legislationResponsible: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + legislationResponsible: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="An individual or organization that has some kind of responsibility for the legislation." "Typically the ministry who is/was in charge of elaborating the legislation, or the adressee" @@ -103,8 +103,8 @@ class Legislation(CreativeWork): if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Date import Date from pydantic_schemaorg.LegalForceStatus import LegalForceStatus from pydantic_schemaorg.URL import URL diff --git a/pydantic_schemaorg/LegislationObject.py b/pydantic_schemaorg/LegislationObject.py index 9507f75e..46e14c36 100644 --- a/pydantic_schemaorg/LegislationObject.py +++ b/pydantic_schemaorg/LegislationObject.py @@ -17,7 +17,7 @@ class LegislationObject(Legislation, MediaObject): See: https://schema.org/LegislationObject Model depth: 4 """ - type_: str = Field(default="LegislationObject", alias='@type', constant=True) + type_: str = Field(default="LegislationObject", alias='@type', const=True) legislationLegalValue: Optional[Union[List[Union['LegalValueLevel', str]], 'LegalValueLevel', str]] = Field( default=None, description="The legal value of this legislation file. The same legislation can be written in multiple" diff --git a/pydantic_schemaorg/LegislativeBuilding.py b/pydantic_schemaorg/LegislativeBuilding.py index 6523c175..fa98b8ec 100644 --- a/pydantic_schemaorg/LegislativeBuilding.py +++ b/pydantic_schemaorg/LegislativeBuilding.py @@ -11,5 +11,5 @@ class LegislativeBuilding(GovernmentBuilding): See: https://schema.org/LegislativeBuilding Model depth: 5 """ - type_: str = Field(default="LegislativeBuilding", alias='@type', constant=True) + type_: str = Field(default="LegislativeBuilding", alias='@type', const=True) diff --git a/pydantic_schemaorg/LeisureTimeActivity.py b/pydantic_schemaorg/LeisureTimeActivity.py index e6d19c59..42d154c3 100644 --- a/pydantic_schemaorg/LeisureTimeActivity.py +++ b/pydantic_schemaorg/LeisureTimeActivity.py @@ -12,5 +12,5 @@ class LeisureTimeActivity(PhysicalActivityCategory): See: https://schema.org/LeisureTimeActivity Model depth: 5 """ - type_: str = Field(default="LeisureTimeActivity", alias='@type', constant=True) + type_: str = Field(default="LeisureTimeActivity", alias='@type', const=True) diff --git a/pydantic_schemaorg/LendAction.py b/pydantic_schemaorg/LendAction.py index 8f90f4c4..ad0a4fc6 100644 --- a/pydantic_schemaorg/LendAction.py +++ b/pydantic_schemaorg/LendAction.py @@ -15,7 +15,7 @@ class LendAction(TransferAction): See: https://schema.org/LendAction Model depth: 4 """ - type_: str = Field(default="LendAction", alias='@type', constant=True) + type_: str = Field(default="LendAction", alias='@type', const=True) borrower: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="A sub property of participant. The person that borrows the object being lent.", diff --git a/pydantic_schemaorg/Library.py b/pydantic_schemaorg/Library.py index d28dbc84..e74b76f0 100644 --- a/pydantic_schemaorg/Library.py +++ b/pydantic_schemaorg/Library.py @@ -11,5 +11,5 @@ class Library(LocalBusiness): See: https://schema.org/Library Model depth: 4 """ - type_: str = Field(default="Library", alias='@type', constant=True) + type_: str = Field(default="Library", alias='@type', const=True) diff --git a/pydantic_schemaorg/LibrarySystem.py b/pydantic_schemaorg/LibrarySystem.py index 2157ae90..f69805e0 100644 --- a/pydantic_schemaorg/LibrarySystem.py +++ b/pydantic_schemaorg/LibrarySystem.py @@ -11,5 +11,5 @@ class LibrarySystem(Organization): See: https://schema.org/LibrarySystem Model depth: 3 """ - type_: str = Field(default="LibrarySystem", alias='@type', constant=True) + type_: str = Field(default="LibrarySystem", alias='@type', const=True) diff --git a/pydantic_schemaorg/LifestyleModification.py b/pydantic_schemaorg/LifestyleModification.py index 02aec82b..2bb16c12 100644 --- a/pydantic_schemaorg/LifestyleModification.py +++ b/pydantic_schemaorg/LifestyleModification.py @@ -12,5 +12,5 @@ class LifestyleModification(MedicalEntity): See: https://schema.org/LifestyleModification Model depth: 3 """ - type_: str = Field(default="LifestyleModification", alias='@type', constant=True) + type_: str = Field(default="LifestyleModification", alias='@type', const=True) diff --git a/pydantic_schemaorg/Ligament.py b/pydantic_schemaorg/Ligament.py index 9bf5516c..1ef2ba4b 100644 --- a/pydantic_schemaorg/Ligament.py +++ b/pydantic_schemaorg/Ligament.py @@ -12,5 +12,5 @@ class Ligament(AnatomicalStructure): See: https://schema.org/Ligament Model depth: 4 """ - type_: str = Field(default="Ligament", alias='@type', constant=True) + type_: str = Field(default="Ligament", alias='@type', const=True) diff --git a/pydantic_schemaorg/LikeAction.py b/pydantic_schemaorg/LikeAction.py index 90c46892..27ec3863 100644 --- a/pydantic_schemaorg/LikeAction.py +++ b/pydantic_schemaorg/LikeAction.py @@ -12,5 +12,5 @@ class LikeAction(ReactAction): See: https://schema.org/LikeAction Model depth: 5 """ - type_: str = Field(default="LikeAction", alias='@type', constant=True) + type_: str = Field(default="LikeAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/LimitedAvailability.py b/pydantic_schemaorg/LimitedAvailability.py index ede0d00d..981b8260 100644 --- a/pydantic_schemaorg/LimitedAvailability.py +++ b/pydantic_schemaorg/LimitedAvailability.py @@ -11,5 +11,5 @@ class LimitedAvailability(ItemAvailability): See: https://schema.org/LimitedAvailability Model depth: 5 """ - type_: str = Field(default="LimitedAvailability", alias='@type', constant=True) + type_: str = Field(default="LimitedAvailability", alias='@type', const=True) diff --git a/pydantic_schemaorg/LimitedByGuaranteeCharity.py b/pydantic_schemaorg/LimitedByGuaranteeCharity.py index bba5f28f..383c1988 100644 --- a/pydantic_schemaorg/LimitedByGuaranteeCharity.py +++ b/pydantic_schemaorg/LimitedByGuaranteeCharity.py @@ -12,5 +12,5 @@ class LimitedByGuaranteeCharity(UKNonprofitType): See: https://schema.org/LimitedByGuaranteeCharity Model depth: 6 """ - type_: str = Field(default="LimitedByGuaranteeCharity", alias='@type', constant=True) + type_: str = Field(default="LimitedByGuaranteeCharity", alias='@type', const=True) diff --git a/pydantic_schemaorg/LinkRole.py b/pydantic_schemaorg/LinkRole.py index c5648394..7216a405 100644 --- a/pydantic_schemaorg/LinkRole.py +++ b/pydantic_schemaorg/LinkRole.py @@ -17,7 +17,7 @@ class LinkRole(Role): See: https://schema.org/LinkRole Model depth: 4 """ - type_: str = Field(default="LinkRole", alias='@type', constant=True) + type_: str = Field(default="LinkRole", alias='@type', const=True) linkRelationship: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Indicates the relationship type of a Web link.", diff --git a/pydantic_schemaorg/LiquorStore.py b/pydantic_schemaorg/LiquorStore.py index 2837633a..d249ac45 100644 --- a/pydantic_schemaorg/LiquorStore.py +++ b/pydantic_schemaorg/LiquorStore.py @@ -11,5 +11,5 @@ class LiquorStore(Store): See: https://schema.org/LiquorStore Model depth: 5 """ - type_: str = Field(default="LiquorStore", alias='@type', constant=True) + type_: str = Field(default="LiquorStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/ListItem.py b/pydantic_schemaorg/ListItem.py index 25759627..a59e808c 100644 --- a/pydantic_schemaorg/ListItem.py +++ b/pydantic_schemaorg/ListItem.py @@ -14,7 +14,7 @@ class ListItem(Intangible): See: https://schema.org/ListItem Model depth: 3 """ - type_: str = Field(default="ListItem", alias='@type', constant=True) + type_: str = Field(default="ListItem", alias='@type', const=True) position: Optional[Union[List[Union[int, 'Integer', str, 'Text']], int, 'Integer', str, 'Text']] = Field( default=None, description="The position of an item in a series or sequence of items.", diff --git a/pydantic_schemaorg/ListPrice.py b/pydantic_schemaorg/ListPrice.py index 025304d3..1a97c76b 100644 --- a/pydantic_schemaorg/ListPrice.py +++ b/pydantic_schemaorg/ListPrice.py @@ -12,5 +12,5 @@ class ListPrice(PriceTypeEnumeration): See: https://schema.org/ListPrice Model depth: 5 """ - type_: str = Field(default="ListPrice", alias='@type', constant=True) + type_: str = Field(default="ListPrice", alias='@type', const=True) diff --git a/pydantic_schemaorg/ListenAction.py b/pydantic_schemaorg/ListenAction.py index 3d52b8a1..351ce2f8 100644 --- a/pydantic_schemaorg/ListenAction.py +++ b/pydantic_schemaorg/ListenAction.py @@ -11,5 +11,5 @@ class ListenAction(ConsumeAction): See: https://schema.org/ListenAction Model depth: 4 """ - type_: str = Field(default="ListenAction", alias='@type', constant=True) + type_: str = Field(default="ListenAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/LiteraryEvent.py b/pydantic_schemaorg/LiteraryEvent.py index 2d47bbd6..b6e811aa 100644 --- a/pydantic_schemaorg/LiteraryEvent.py +++ b/pydantic_schemaorg/LiteraryEvent.py @@ -11,5 +11,5 @@ class LiteraryEvent(Event): See: https://schema.org/LiteraryEvent Model depth: 3 """ - type_: str = Field(default="LiteraryEvent", alias='@type', constant=True) + type_: str = Field(default="LiteraryEvent", alias='@type', const=True) diff --git a/pydantic_schemaorg/LiveAlbum.py b/pydantic_schemaorg/LiveAlbum.py index 7c27a161..80560729 100644 --- a/pydantic_schemaorg/LiveAlbum.py +++ b/pydantic_schemaorg/LiveAlbum.py @@ -11,5 +11,5 @@ class LiveAlbum(MusicAlbumProductionType): See: https://schema.org/LiveAlbum Model depth: 5 """ - type_: str = Field(default="LiveAlbum", alias='@type', constant=True) + type_: str = Field(default="LiveAlbum", alias='@type', const=True) diff --git a/pydantic_schemaorg/LiveBlogPosting.py b/pydantic_schemaorg/LiveBlogPosting.py index 7e748950..ac5a1ac3 100644 --- a/pydantic_schemaorg/LiveBlogPosting.py +++ b/pydantic_schemaorg/LiveBlogPosting.py @@ -16,7 +16,7 @@ class LiveBlogPosting(BlogPosting): See: https://schema.org/LiveBlogPosting Model depth: 6 """ - type_: str = Field(default="LiveBlogPosting", alias='@type', constant=True) + type_: str = Field(default="LiveBlogPosting", alias='@type', const=True) coverageEndTime: Optional[Union[List[Union[datetime, 'DateTime', str]], datetime, 'DateTime', str]] = Field( default=None, description="The time when the live blog will stop covering the Event. Note that coverage may continue" diff --git a/pydantic_schemaorg/LivingWithHealthAspect.py b/pydantic_schemaorg/LivingWithHealthAspect.py index b13603e4..ceabbf80 100644 --- a/pydantic_schemaorg/LivingWithHealthAspect.py +++ b/pydantic_schemaorg/LivingWithHealthAspect.py @@ -11,5 +11,5 @@ class LivingWithHealthAspect(HealthAspectEnumeration): See: https://schema.org/LivingWithHealthAspect Model depth: 5 """ - type_: str = Field(default="LivingWithHealthAspect", alias='@type', constant=True) + type_: str = Field(default="LivingWithHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/LoanOrCredit.py b/pydantic_schemaorg/LoanOrCredit.py index 9bfe6422..340b3ae0 100644 --- a/pydantic_schemaorg/LoanOrCredit.py +++ b/pydantic_schemaorg/LoanOrCredit.py @@ -2,8 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from pydantic import AnyUrl, StrictBool -from decimal import Decimal +from pydantic import AnyUrl, StrictBool, StrictInt, StrictFloat from pydantic import Field @@ -17,7 +16,7 @@ class LoanOrCredit(FinancialProduct): See: https://schema.org/LoanOrCredit Model depth: 5 """ - type_: str = Field(default="LoanOrCredit", alias='@type', constant=True) + type_: str = Field(default="LoanOrCredit", alias='@type', const=True) loanRepaymentForm: Optional[Union[List[Union['RepaymentSpecification', str]], 'RepaymentSpecification', str]] = Field( default=None, description="A form of paying back money previously borrowed from a lender. Repayment usually takes" @@ -37,7 +36,7 @@ class LoanOrCredit(FinancialProduct): default=None, description="The type of a loan or credit.", ) - amount: Optional[Union[List[Union[int, float, 'Number', 'MonetaryAmount', str]], int, float, 'Number', 'MonetaryAmount', str]] = Field( + amount: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]], StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]] = Field( default=None, description="The amount of money.", ) diff --git a/pydantic_schemaorg/LocalBusiness.py b/pydantic_schemaorg/LocalBusiness.py index d9f444e1..4949232a 100644 --- a/pydantic_schemaorg/LocalBusiness.py +++ b/pydantic_schemaorg/LocalBusiness.py @@ -17,7 +17,7 @@ class LocalBusiness(Place, Organization): See: https://schema.org/LocalBusiness Model depth: 3 """ - type_: str = Field(default="LocalBusiness", alias='@type', constant=True) + type_: str = Field(default="LocalBusiness", alias='@type', const=True) priceRange: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The price range of the business, for example ```$$$```.", diff --git a/pydantic_schemaorg/LocationFeatureSpecification.py b/pydantic_schemaorg/LocationFeatureSpecification.py index 43603676..7caada6a 100644 --- a/pydantic_schemaorg/LocationFeatureSpecification.py +++ b/pydantic_schemaorg/LocationFeatureSpecification.py @@ -16,7 +16,7 @@ class LocationFeatureSpecification(PropertyValue): See: https://schema.org/LocationFeatureSpecification Model depth: 5 """ - type_: str = Field(default="LocationFeatureSpecification", alias='@type', constant=True) + type_: str = Field(default="LocationFeatureSpecification", alias='@type', const=True) validFrom: Optional[Union[List[Union[datetime, 'DateTime', date, 'Date', str]], datetime, 'DateTime', date, 'Date', str]] = Field( default=None, description="The date when the item becomes valid.", diff --git a/pydantic_schemaorg/LockerDelivery.py b/pydantic_schemaorg/LockerDelivery.py index 0e93f87d..3a62db94 100644 --- a/pydantic_schemaorg/LockerDelivery.py +++ b/pydantic_schemaorg/LockerDelivery.py @@ -11,5 +11,5 @@ class LockerDelivery(DeliveryMethod): See: https://schema.org/LockerDelivery Model depth: 5 """ - type_: str = Field(default="LockerDelivery", alias='@type', constant=True) + type_: str = Field(default="LockerDelivery", alias='@type', const=True) diff --git a/pydantic_schemaorg/Locksmith.py b/pydantic_schemaorg/Locksmith.py index 3cca5d37..c671d15b 100644 --- a/pydantic_schemaorg/Locksmith.py +++ b/pydantic_schemaorg/Locksmith.py @@ -11,5 +11,5 @@ class Locksmith(HomeAndConstructionBusiness): See: https://schema.org/Locksmith Model depth: 5 """ - type_: str = Field(default="Locksmith", alias='@type', constant=True) + type_: str = Field(default="Locksmith", alias='@type', const=True) diff --git a/pydantic_schemaorg/LodgingBusiness.py b/pydantic_schemaorg/LodgingBusiness.py index 0828d9c5..07cc54a6 100644 --- a/pydantic_schemaorg/LodgingBusiness.py +++ b/pydantic_schemaorg/LodgingBusiness.py @@ -2,9 +2,8 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictBool, StrictInt, StrictFloat from datetime import datetime, time -from pydantic import StrictBool from pydantic import Field @@ -17,14 +16,14 @@ class LodgingBusiness(LocalBusiness): See: https://schema.org/LodgingBusiness Model depth: 4 """ - type_: str = Field(default="LodgingBusiness", alias='@type', constant=True) + type_: str = Field(default="LodgingBusiness", alias='@type', const=True) amenityFeature: Optional[Union[List[Union['LocationFeatureSpecification', str]], 'LocationFeatureSpecification', str]] = Field( default=None, description="An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic" "property does not make a statement about whether the feature is included in an offer for" "the main accommodation or available at extra costs.", ) - numberOfRooms: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + numberOfRooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The number of rooms (excluding bathrooms and closets) of the accommodation or lodging" "business. Typical unit code(s): ROM for room or C62 for no unit. The type of room can be" diff --git a/pydantic_schemaorg/LodgingReservation.py b/pydantic_schemaorg/LodgingReservation.py index b2551f9d..ac48c70f 100644 --- a/pydantic_schemaorg/LodgingReservation.py +++ b/pydantic_schemaorg/LodgingReservation.py @@ -17,7 +17,7 @@ class LodgingReservation(Reservation): See: https://schema.org/LodgingReservation Model depth: 4 """ - type_: str = Field(default="LodgingReservation", alias='@type', constant=True) + type_: str = Field(default="LodgingReservation", alias='@type', const=True) lodgingUnitDescription: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A full description of the lodging unit.", diff --git a/pydantic_schemaorg/Longitudinal.py b/pydantic_schemaorg/Longitudinal.py index e088b416..0a10acb1 100644 --- a/pydantic_schemaorg/Longitudinal.py +++ b/pydantic_schemaorg/Longitudinal.py @@ -14,5 +14,5 @@ class Longitudinal(MedicalObservationalStudyDesign): See: https://schema.org/Longitudinal Model depth: 6 """ - type_: str = Field(default="Longitudinal", alias='@type', constant=True) + type_: str = Field(default="Longitudinal", alias='@type', const=True) diff --git a/pydantic_schemaorg/LoseAction.py b/pydantic_schemaorg/LoseAction.py index d8dfc49c..5cdf39d0 100644 --- a/pydantic_schemaorg/LoseAction.py +++ b/pydantic_schemaorg/LoseAction.py @@ -14,7 +14,7 @@ class LoseAction(AchieveAction): See: https://schema.org/LoseAction Model depth: 4 """ - type_: str = Field(default="LoseAction", alias='@type', constant=True) + type_: str = Field(default="LoseAction", alias='@type', const=True) winner: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="A sub property of participant. The winner of the action.", diff --git a/pydantic_schemaorg/LowCalorieDiet.py b/pydantic_schemaorg/LowCalorieDiet.py index dcd525a4..1e4fd6fe 100644 --- a/pydantic_schemaorg/LowCalorieDiet.py +++ b/pydantic_schemaorg/LowCalorieDiet.py @@ -11,5 +11,5 @@ class LowCalorieDiet(RestrictedDiet): See: https://schema.org/LowCalorieDiet Model depth: 5 """ - type_: str = Field(default="LowCalorieDiet", alias='@type', constant=True) + type_: str = Field(default="LowCalorieDiet", alias='@type', const=True) diff --git a/pydantic_schemaorg/LowFatDiet.py b/pydantic_schemaorg/LowFatDiet.py index fbe78354..5f3687bf 100644 --- a/pydantic_schemaorg/LowFatDiet.py +++ b/pydantic_schemaorg/LowFatDiet.py @@ -11,5 +11,5 @@ class LowFatDiet(RestrictedDiet): See: https://schema.org/LowFatDiet Model depth: 5 """ - type_: str = Field(default="LowFatDiet", alias='@type', constant=True) + type_: str = Field(default="LowFatDiet", alias='@type', const=True) diff --git a/pydantic_schemaorg/LowLactoseDiet.py b/pydantic_schemaorg/LowLactoseDiet.py index bd5a32fe..d57d9b8a 100644 --- a/pydantic_schemaorg/LowLactoseDiet.py +++ b/pydantic_schemaorg/LowLactoseDiet.py @@ -11,5 +11,5 @@ class LowLactoseDiet(RestrictedDiet): See: https://schema.org/LowLactoseDiet Model depth: 5 """ - type_: str = Field(default="LowLactoseDiet", alias='@type', constant=True) + type_: str = Field(default="LowLactoseDiet", alias='@type', const=True) diff --git a/pydantic_schemaorg/LowSaltDiet.py b/pydantic_schemaorg/LowSaltDiet.py index 587f9130..1a524f56 100644 --- a/pydantic_schemaorg/LowSaltDiet.py +++ b/pydantic_schemaorg/LowSaltDiet.py @@ -11,5 +11,5 @@ class LowSaltDiet(RestrictedDiet): See: https://schema.org/LowSaltDiet Model depth: 5 """ - type_: str = Field(default="LowSaltDiet", alias='@type', constant=True) + type_: str = Field(default="LowSaltDiet", alias='@type', const=True) diff --git a/pydantic_schemaorg/Lung.py b/pydantic_schemaorg/Lung.py index 8ff85961..ddfbd2d2 100644 --- a/pydantic_schemaorg/Lung.py +++ b/pydantic_schemaorg/Lung.py @@ -11,5 +11,5 @@ class Lung(PhysicalExam): See: https://schema.org/Lung Model depth: 5 """ - type_: str = Field(default="Lung", alias='@type', constant=True) + type_: str = Field(default="Lung", alias='@type', const=True) diff --git a/pydantic_schemaorg/LymphaticVessel.py b/pydantic_schemaorg/LymphaticVessel.py index 0a638182..57abdd29 100644 --- a/pydantic_schemaorg/LymphaticVessel.py +++ b/pydantic_schemaorg/LymphaticVessel.py @@ -15,7 +15,7 @@ class LymphaticVessel(Vessel): See: https://schema.org/LymphaticVessel Model depth: 5 """ - type_: str = Field(default="LymphaticVessel", alias='@type', constant=True) + type_: str = Field(default="LymphaticVessel", alias='@type', const=True) originatesFrom: Optional[Union[List[Union['Vessel', str]], 'Vessel', str]] = Field( default=None, description="The vasculature the lymphatic structure originates, or afferents, from.", @@ -24,7 +24,7 @@ class LymphaticVessel(Vessel): default=None, description="The vasculature the lymphatic structure runs, or efferents, to.", ) - regionDrained: Optional[Union[List[Union['AnatomicalStructure', 'AnatomicalSystem', str]], 'AnatomicalStructure', 'AnatomicalSystem', str]] = Field( + regionDrained: Optional[Union[List[Union['AnatomicalSystem', 'AnatomicalStructure', str]], 'AnatomicalSystem', 'AnatomicalStructure', str]] = Field( default=None, description="The anatomical or organ system drained by this vessel; generally refers to a specific" "part of an organ.", @@ -33,5 +33,5 @@ class LymphaticVessel(Vessel): if TYPE_CHECKING: from pydantic_schemaorg.Vessel import Vessel - from pydantic_schemaorg.AnatomicalStructure import AnatomicalStructure from pydantic_schemaorg.AnatomicalSystem import AnatomicalSystem + from pydantic_schemaorg.AnatomicalStructure import AnatomicalStructure diff --git a/pydantic_schemaorg/MRI.py b/pydantic_schemaorg/MRI.py index c0771856..c1d20b2e 100644 --- a/pydantic_schemaorg/MRI.py +++ b/pydantic_schemaorg/MRI.py @@ -11,5 +11,5 @@ class MRI(MedicalImagingTechnique): See: https://schema.org/MRI Model depth: 6 """ - type_: str = Field(default="MRI", alias='@type', constant=True) + type_: str = Field(default="MRI", alias='@type', const=True) diff --git a/pydantic_schemaorg/MSRP.py b/pydantic_schemaorg/MSRP.py index 0bc413c6..88fd56bb 100644 --- a/pydantic_schemaorg/MSRP.py +++ b/pydantic_schemaorg/MSRP.py @@ -11,5 +11,5 @@ class MSRP(PriceTypeEnumeration): See: https://schema.org/MSRP Model depth: 5 """ - type_: str = Field(default="MSRP", alias='@type', constant=True) + type_: str = Field(default="MSRP", alias='@type', const=True) diff --git a/pydantic_schemaorg/Male.py b/pydantic_schemaorg/Male.py index 6a142aed..9ec08244 100644 --- a/pydantic_schemaorg/Male.py +++ b/pydantic_schemaorg/Male.py @@ -11,5 +11,5 @@ class Male(GenderType): See: https://schema.org/Male Model depth: 5 """ - type_: str = Field(default="Male", alias='@type', constant=True) + type_: str = Field(default="Male", alias='@type', const=True) diff --git a/pydantic_schemaorg/Manuscript.py b/pydantic_schemaorg/Manuscript.py index 268079f6..e159efd0 100644 --- a/pydantic_schemaorg/Manuscript.py +++ b/pydantic_schemaorg/Manuscript.py @@ -11,5 +11,5 @@ class Manuscript(CreativeWork): See: https://schema.org/Manuscript Model depth: 3 """ - type_: str = Field(default="Manuscript", alias='@type', constant=True) + type_: str = Field(default="Manuscript", alias='@type', const=True) diff --git a/pydantic_schemaorg/Map.py b/pydantic_schemaorg/Map.py index d4b5a274..9f24537a 100644 --- a/pydantic_schemaorg/Map.py +++ b/pydantic_schemaorg/Map.py @@ -14,7 +14,7 @@ class Map(CreativeWork): See: https://schema.org/Map Model depth: 3 """ - type_: str = Field(default="Map", alias='@type', constant=True) + type_: str = Field(default="Map", alias='@type', const=True) mapType: Optional[Union[List[Union['MapCategoryType', str]], 'MapCategoryType', str]] = Field( default=None, description="Indicates the kind of Map, from the MapCategoryType Enumeration.", diff --git a/pydantic_schemaorg/MapCategoryType.py b/pydantic_schemaorg/MapCategoryType.py index 9310c8b3..9880b942 100644 --- a/pydantic_schemaorg/MapCategoryType.py +++ b/pydantic_schemaorg/MapCategoryType.py @@ -11,5 +11,5 @@ class MapCategoryType(Enumeration): See: https://schema.org/MapCategoryType Model depth: 4 """ - type_: str = Field(default="MapCategoryType", alias='@type', constant=True) + type_: str = Field(default="MapCategoryType", alias='@type', const=True) diff --git a/pydantic_schemaorg/MarryAction.py b/pydantic_schemaorg/MarryAction.py index 8cfee9f3..ed5202bd 100644 --- a/pydantic_schemaorg/MarryAction.py +++ b/pydantic_schemaorg/MarryAction.py @@ -11,5 +11,5 @@ class MarryAction(InteractAction): See: https://schema.org/MarryAction Model depth: 4 """ - type_: str = Field(default="MarryAction", alias='@type', constant=True) + type_: str = Field(default="MarryAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Mass.py b/pydantic_schemaorg/Mass.py index b35f36c3..54148031 100644 --- a/pydantic_schemaorg/Mass.py +++ b/pydantic_schemaorg/Mass.py @@ -12,5 +12,5 @@ class Mass(Quantity): See: https://schema.org/Mass Model depth: 4 """ - type_: str = Field(default="Mass", alias='@type', constant=True) + type_: str = Field(default="Mass", alias='@type', const=True) diff --git a/pydantic_schemaorg/MathSolver.py b/pydantic_schemaorg/MathSolver.py index 125aef50..4af55622 100644 --- a/pydantic_schemaorg/MathSolver.py +++ b/pydantic_schemaorg/MathSolver.py @@ -14,7 +14,7 @@ class MathSolver(CreativeWork): See: https://schema.org/MathSolver Model depth: 3 """ - type_: str = Field(default="MathSolver", alias='@type', constant=True) + type_: str = Field(default="MathSolver", alias='@type', const=True) mathExpression: Optional[Union[List[Union[str, 'Text', 'SolveMathAction']], str, 'Text', 'SolveMathAction']] = Field( default=None, description="A mathematical expression (e.g. 'x^2-3x=0') that may be solved for a specific variable," diff --git a/pydantic_schemaorg/MaximumDoseSchedule.py b/pydantic_schemaorg/MaximumDoseSchedule.py index 958ca883..ef326ba5 100644 --- a/pydantic_schemaorg/MaximumDoseSchedule.py +++ b/pydantic_schemaorg/MaximumDoseSchedule.py @@ -13,5 +13,5 @@ class MaximumDoseSchedule(DoseSchedule): See: https://schema.org/MaximumDoseSchedule Model depth: 5 """ - type_: str = Field(default="MaximumDoseSchedule", alias='@type', constant=True) + type_: str = Field(default="MaximumDoseSchedule", alias='@type', const=True) diff --git a/pydantic_schemaorg/MayTreatHealthAspect.py b/pydantic_schemaorg/MayTreatHealthAspect.py index fe09fc99..6c4a3659 100644 --- a/pydantic_schemaorg/MayTreatHealthAspect.py +++ b/pydantic_schemaorg/MayTreatHealthAspect.py @@ -11,5 +11,5 @@ class MayTreatHealthAspect(HealthAspectEnumeration): See: https://schema.org/MayTreatHealthAspect Model depth: 5 """ - type_: str = Field(default="MayTreatHealthAspect", alias='@type', constant=True) + type_: str = Field(default="MayTreatHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/MeasurementTypeEnumeration.py b/pydantic_schemaorg/MeasurementTypeEnumeration.py index 76d61638..dc5a6a02 100644 --- a/pydantic_schemaorg/MeasurementTypeEnumeration.py +++ b/pydantic_schemaorg/MeasurementTypeEnumeration.py @@ -12,5 +12,5 @@ class MeasurementTypeEnumeration(Enumeration): See: https://schema.org/MeasurementTypeEnumeration Model depth: 4 """ - type_: str = Field(default="MeasurementTypeEnumeration", alias='@type', constant=True) + type_: str = Field(default="MeasurementTypeEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/MediaGallery.py b/pydantic_schemaorg/MediaGallery.py index 57e84438..6400de33 100644 --- a/pydantic_schemaorg/MediaGallery.py +++ b/pydantic_schemaorg/MediaGallery.py @@ -12,5 +12,5 @@ class MediaGallery(CollectionPage): See: https://schema.org/MediaGallery Model depth: 5 """ - type_: str = Field(default="MediaGallery", alias='@type', constant=True) + type_: str = Field(default="MediaGallery", alias='@type', const=True) diff --git a/pydantic_schemaorg/MediaManipulationRatingEnumeration.py b/pydantic_schemaorg/MediaManipulationRatingEnumeration.py index 71cb9a2f..5001039a 100644 --- a/pydantic_schemaorg/MediaManipulationRatingEnumeration.py +++ b/pydantic_schemaorg/MediaManipulationRatingEnumeration.py @@ -16,5 +16,5 @@ class MediaManipulationRatingEnumeration(Enumeration): See: https://schema.org/MediaManipulationRatingEnumeration Model depth: 4 """ - type_: str = Field(default="MediaManipulationRatingEnumeration", alias='@type', constant=True) + type_: str = Field(default="MediaManipulationRatingEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/MediaObject.py b/pydantic_schemaorg/MediaObject.py index df38db9d..4600acec 100644 --- a/pydantic_schemaorg/MediaObject.py +++ b/pydantic_schemaorg/MediaObject.py @@ -19,7 +19,7 @@ class MediaObject(CreativeWork): See: https://schema.org/MediaObject Model depth: 3 """ - type_: str = Field(default="MediaObject", alias='@type', constant=True) + type_: str = Field(default="MediaObject", alias='@type', const=True) bitrate: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The bitrate of the media object.", @@ -120,7 +120,7 @@ class MediaObject(CreativeWork): default=None, description="Player type required—for example, Flash or Silverlight.", ) - ineligibleRegion: Optional[Union[List[Union[str, 'Text', 'GeoShape', 'Place']], str, 'Text', 'GeoShape', 'Place']] = Field( + ineligibleRegion: Optional[Union[List[Union[str, 'Text', 'Place', 'GeoShape']], str, 'Text', 'Place', 'GeoShape']] = Field( default=None, description="The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for" "the geo-political region(s) for which the offer or delivery charge specification is" diff --git a/pydantic_schemaorg/MediaReview.py b/pydantic_schemaorg/MediaReview.py index 0e954360..671f7b83 100644 --- a/pydantic_schemaorg/MediaReview.py +++ b/pydantic_schemaorg/MediaReview.py @@ -23,8 +23,8 @@ class MediaReview(Review): See: https://schema.org/MediaReview Model depth: 4 """ - type_: str = Field(default="MediaReview", alias='@type', constant=True) - originalMediaLink: Optional[Union[List[Union[AnyUrl, 'URL', 'WebPage', 'MediaObject', str]], AnyUrl, 'URL', 'WebPage', 'MediaObject', str]] = Field( + type_: str = Field(default="MediaReview", alias='@type', const=True) + originalMediaLink: Optional[Union[List[Union[AnyUrl, 'URL', 'MediaObject', 'WebPage', str]], AnyUrl, 'URL', 'MediaObject', 'WebPage', str]] = Field( default=None, description="Link to the page containing an original version of the content, or directly to an online" "copy of the original [[MediaObject]] content, e.g. video file.", @@ -43,7 +43,7 @@ class MediaReview(Review): if TYPE_CHECKING: from pydantic_schemaorg.URL import URL - from pydantic_schemaorg.WebPage import WebPage from pydantic_schemaorg.MediaObject import MediaObject + from pydantic_schemaorg.WebPage import WebPage from pydantic_schemaorg.MediaManipulationRatingEnumeration import MediaManipulationRatingEnumeration from pydantic_schemaorg.Text import Text diff --git a/pydantic_schemaorg/MediaReviewItem.py b/pydantic_schemaorg/MediaReviewItem.py index 88468942..cbc43100 100644 --- a/pydantic_schemaorg/MediaReviewItem.py +++ b/pydantic_schemaorg/MediaReviewItem.py @@ -16,7 +16,7 @@ class MediaReviewItem(CreativeWork): See: https://schema.org/MediaReviewItem Model depth: 3 """ - type_: str = Field(default="MediaReviewItem", alias='@type', constant=True) + type_: str = Field(default="MediaReviewItem", alias='@type', const=True) mediaItemAppearance: Optional[Union[List[Union['MediaObject', str]], 'MediaObject', str]] = Field( default=None, description="In the context of a [[MediaReview]], indicates specific media item(s) that are grouped" diff --git a/pydantic_schemaorg/MediaSubscription.py b/pydantic_schemaorg/MediaSubscription.py index 2c0ca691..c300cdf7 100644 --- a/pydantic_schemaorg/MediaSubscription.py +++ b/pydantic_schemaorg/MediaSubscription.py @@ -14,7 +14,7 @@ class MediaSubscription(Intangible): See: https://schema.org/MediaSubscription Model depth: 3 """ - type_: str = Field(default="MediaSubscription", alias='@type', constant=True) + type_: str = Field(default="MediaSubscription", alias='@type', const=True) expectsAcceptanceOf: Optional[Union[List[Union['Offer', str]], 'Offer', str]] = Field( default=None, description="An Offer which must be accepted before the user can perform the Action. For example, the" diff --git a/pydantic_schemaorg/MedicalAudience.py b/pydantic_schemaorg/MedicalAudience.py index 5d2b57ac..ea886c62 100644 --- a/pydantic_schemaorg/MedicalAudience.py +++ b/pydantic_schemaorg/MedicalAudience.py @@ -12,5 +12,5 @@ class MedicalAudience(PeopleAudience, Audience): See: https://schema.org/MedicalAudience Model depth: 4 """ - type_: str = Field(default="MedicalAudience", alias='@type', constant=True) + type_: str = Field(default="MedicalAudience", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalAudienceType.py b/pydantic_schemaorg/MedicalAudienceType.py index 2ca0e033..27b55b58 100644 --- a/pydantic_schemaorg/MedicalAudienceType.py +++ b/pydantic_schemaorg/MedicalAudienceType.py @@ -11,5 +11,5 @@ class MedicalAudienceType(MedicalEnumeration): See: https://schema.org/MedicalAudienceType Model depth: 5 """ - type_: str = Field(default="MedicalAudienceType", alias='@type', constant=True) + type_: str = Field(default="MedicalAudienceType", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalBusiness.py b/pydantic_schemaorg/MedicalBusiness.py index 827ee0f6..772f75dd 100644 --- a/pydantic_schemaorg/MedicalBusiness.py +++ b/pydantic_schemaorg/MedicalBusiness.py @@ -12,5 +12,5 @@ class MedicalBusiness(LocalBusiness): See: https://schema.org/MedicalBusiness Model depth: 4 """ - type_: str = Field(default="MedicalBusiness", alias='@type', constant=True) + type_: str = Field(default="MedicalBusiness", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalCause.py b/pydantic_schemaorg/MedicalCause.py index 0d4051fd..7cf6b269 100644 --- a/pydantic_schemaorg/MedicalCause.py +++ b/pydantic_schemaorg/MedicalCause.py @@ -26,7 +26,7 @@ class MedicalCause(MedicalEntity): See: https://schema.org/MedicalCause Model depth: 3 """ - type_: str = Field(default="MedicalCause", alias='@type', constant=True) + type_: str = Field(default="MedicalCause", alias='@type', const=True) causeOf: Optional[Union[List[Union['MedicalEntity', str]], 'MedicalEntity', str]] = Field( default=None, description="The condition, complication, symptom, sign, etc. caused.", diff --git a/pydantic_schemaorg/MedicalClinic.py b/pydantic_schemaorg/MedicalClinic.py index 4d23397d..e408c7c1 100644 --- a/pydantic_schemaorg/MedicalClinic.py +++ b/pydantic_schemaorg/MedicalClinic.py @@ -17,12 +17,12 @@ class MedicalClinic(MedicalBusiness, MedicalOrganization): See: https://schema.org/MedicalClinic Model depth: 4 """ - type_: str = Field(default="MedicalClinic", alias='@type', constant=True) + type_: str = Field(default="MedicalClinic", alias='@type', const=True) medicalSpecialty: Optional[Union[List[Union['MedicalSpecialty', str]], 'MedicalSpecialty', str]] = Field( default=None, description="A medical specialty of the provider.", ) - availableService: Optional[Union[List[Union['MedicalProcedure', 'MedicalTest', 'MedicalTherapy', str]], 'MedicalProcedure', 'MedicalTest', 'MedicalTherapy', str]] = Field( + availableService: Optional[Union[List[Union['MedicalTherapy', 'MedicalProcedure', 'MedicalTest', str]], 'MedicalTherapy', 'MedicalProcedure', 'MedicalTest', str]] = Field( default=None, description="A medical service available from this provider.", ) @@ -30,6 +30,6 @@ class MedicalClinic(MedicalBusiness, MedicalOrganization): if TYPE_CHECKING: from pydantic_schemaorg.MedicalSpecialty import MedicalSpecialty + from pydantic_schemaorg.MedicalTherapy import MedicalTherapy from pydantic_schemaorg.MedicalProcedure import MedicalProcedure from pydantic_schemaorg.MedicalTest import MedicalTest - from pydantic_schemaorg.MedicalTherapy import MedicalTherapy diff --git a/pydantic_schemaorg/MedicalCode.py b/pydantic_schemaorg/MedicalCode.py index 66b7ef60..0ea1b2f4 100644 --- a/pydantic_schemaorg/MedicalCode.py +++ b/pydantic_schemaorg/MedicalCode.py @@ -15,7 +15,7 @@ class MedicalCode(CategoryCode, MedicalIntangible): See: https://schema.org/MedicalCode Model depth: 4 """ - type_: str = Field(default="MedicalCode", alias='@type', constant=True) + type_: str = Field(default="MedicalCode", alias='@type', const=True) codeValue: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A short textual code that uniquely identifies the value.", diff --git a/pydantic_schemaorg/MedicalCondition.py b/pydantic_schemaorg/MedicalCondition.py index e378c215..2770fb49 100644 --- a/pydantic_schemaorg/MedicalCondition.py +++ b/pydantic_schemaorg/MedicalCondition.py @@ -16,7 +16,7 @@ class MedicalCondition(MedicalEntity): See: https://schema.org/MedicalCondition Model depth: 3 """ - type_: str = Field(default="MedicalCondition", alias='@type', constant=True) + type_: str = Field(default="MedicalCondition", alias='@type', const=True) epidemiology: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The characteristics of associated patients, such as age, gender, race etc.", @@ -60,7 +60,7 @@ class MedicalCondition(MedicalEntity): default=None, description="A possible treatment to address this condition, sign or symptom.", ) - status: Optional[Union[List[Union[str, 'Text', 'EventStatusType', 'MedicalStudyStatus']], str, 'Text', 'EventStatusType', 'MedicalStudyStatus']] = Field( + status: Optional[Union[List[Union[str, 'Text', 'MedicalStudyStatus', 'EventStatusType']], str, 'Text', 'MedicalStudyStatus', 'EventStatusType']] = Field( default=None, description="The status of the study (enumerated).", ) @@ -84,7 +84,7 @@ class MedicalCondition(MedicalEntity): "may include worsening of the signs or symptoms of the disease, extension of the condition" "to other organ systems, etc.", ) - associatedAnatomy: Optional[Union[List[Union['SuperficialAnatomy', 'AnatomicalStructure', 'AnatomicalSystem', str]], 'SuperficialAnatomy', 'AnatomicalStructure', 'AnatomicalSystem', str]] = Field( + associatedAnatomy: Optional[Union[List[Union['AnatomicalStructure', 'AnatomicalSystem', 'SuperficialAnatomy', str]], 'AnatomicalStructure', 'AnatomicalSystem', 'SuperficialAnatomy', str]] = Field( default=None, description="The anatomy of the underlying organ system or structures associated with this entity.", ) @@ -103,10 +103,10 @@ class MedicalCondition(MedicalEntity): from pydantic_schemaorg.MedicalConditionStage import MedicalConditionStage from pydantic_schemaorg.DDxElement import DDxElement from pydantic_schemaorg.MedicalTherapy import MedicalTherapy - from pydantic_schemaorg.EventStatusType import EventStatusType from pydantic_schemaorg.MedicalStudyStatus import MedicalStudyStatus + from pydantic_schemaorg.EventStatusType import EventStatusType from pydantic_schemaorg.Drug import Drug - from pydantic_schemaorg.SuperficialAnatomy import SuperficialAnatomy from pydantic_schemaorg.AnatomicalStructure import AnatomicalStructure from pydantic_schemaorg.AnatomicalSystem import AnatomicalSystem + from pydantic_schemaorg.SuperficialAnatomy import SuperficialAnatomy from pydantic_schemaorg.MedicalSignOrSymptom import MedicalSignOrSymptom diff --git a/pydantic_schemaorg/MedicalConditionStage.py b/pydantic_schemaorg/MedicalConditionStage.py index dc0cbce4..8767b377 100644 --- a/pydantic_schemaorg/MedicalConditionStage.py +++ b/pydantic_schemaorg/MedicalConditionStage.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -15,8 +15,8 @@ class MedicalConditionStage(MedicalIntangible): See: https://schema.org/MedicalConditionStage Model depth: 4 """ - type_: str = Field(default="MedicalConditionStage", alias='@type', constant=True) - stageAsNumber: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + type_: str = Field(default="MedicalConditionStage", alias='@type', const=True) + stageAsNumber: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The stage represented as a number, e.g. 3.", ) diff --git a/pydantic_schemaorg/MedicalContraindication.py b/pydantic_schemaorg/MedicalContraindication.py index 5a973035..40c33823 100644 --- a/pydantic_schemaorg/MedicalContraindication.py +++ b/pydantic_schemaorg/MedicalContraindication.py @@ -14,5 +14,5 @@ class MedicalContraindication(MedicalEntity): See: https://schema.org/MedicalContraindication Model depth: 3 """ - type_: str = Field(default="MedicalContraindication", alias='@type', constant=True) + type_: str = Field(default="MedicalContraindication", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalDevice.py b/pydantic_schemaorg/MedicalDevice.py index 67327d35..ba59e019 100644 --- a/pydantic_schemaorg/MedicalDevice.py +++ b/pydantic_schemaorg/MedicalDevice.py @@ -14,7 +14,7 @@ class MedicalDevice(MedicalEntity): See: https://schema.org/MedicalDevice Model depth: 3 """ - type_: str = Field(default="MedicalDevice", alias='@type', constant=True) + type_: str = Field(default="MedicalDevice", alias='@type', const=True) postOp: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A description of the postoperative procedures, care, and/or followups for this device.", diff --git a/pydantic_schemaorg/MedicalDevicePurpose.py b/pydantic_schemaorg/MedicalDevicePurpose.py index 07dfc5f3..0c63d682 100644 --- a/pydantic_schemaorg/MedicalDevicePurpose.py +++ b/pydantic_schemaorg/MedicalDevicePurpose.py @@ -11,5 +11,5 @@ class MedicalDevicePurpose(MedicalEnumeration): See: https://schema.org/MedicalDevicePurpose Model depth: 5 """ - type_: str = Field(default="MedicalDevicePurpose", alias='@type', constant=True) + type_: str = Field(default="MedicalDevicePurpose", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalEntity.py b/pydantic_schemaorg/MedicalEntity.py index c84b0b00..cdaaf763 100644 --- a/pydantic_schemaorg/MedicalEntity.py +++ b/pydantic_schemaorg/MedicalEntity.py @@ -14,7 +14,7 @@ class MedicalEntity(Thing): See: https://schema.org/MedicalEntity Model depth: 2 """ - type_: str = Field(default="MedicalEntity", alias='@type', constant=True) + type_: str = Field(default="MedicalEntity", alias='@type', const=True) medicineSystem: Optional[Union[List[Union['MedicineSystem', str]], 'MedicineSystem', str]] = Field( default=None, description="The system of medicine that includes this MedicalEntity, for example 'evidence-based'," @@ -42,7 +42,7 @@ class MedicalEntity(Thing): description="A medical code for the entity, taken from a controlled vocabulary or ontology such as" "ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.", ) - legalStatus: Optional[Union[List[Union[str, 'Text', 'MedicalEnumeration', 'DrugLegalStatus']], str, 'Text', 'MedicalEnumeration', 'DrugLegalStatus']] = Field( + legalStatus: Optional[Union[List[Union[str, 'Text', 'DrugLegalStatus', 'MedicalEnumeration']], str, 'Text', 'DrugLegalStatus', 'MedicalEnumeration']] = Field( default=None, description="The drug or supplement's legal status, including any controlled substance schedules" "that apply.", @@ -57,5 +57,5 @@ class MedicalEntity(Thing): from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.MedicalCode import MedicalCode from pydantic_schemaorg.Text import Text - from pydantic_schemaorg.MedicalEnumeration import MedicalEnumeration from pydantic_schemaorg.DrugLegalStatus import DrugLegalStatus + from pydantic_schemaorg.MedicalEnumeration import MedicalEnumeration diff --git a/pydantic_schemaorg/MedicalEnumeration.py b/pydantic_schemaorg/MedicalEnumeration.py index 99dae7e7..c0d2b10c 100644 --- a/pydantic_schemaorg/MedicalEnumeration.py +++ b/pydantic_schemaorg/MedicalEnumeration.py @@ -13,5 +13,5 @@ class MedicalEnumeration(Enumeration): See: https://schema.org/MedicalEnumeration Model depth: 4 """ - type_: str = Field(default="MedicalEnumeration", alias='@type', constant=True) + type_: str = Field(default="MedicalEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalEvidenceLevel.py b/pydantic_schemaorg/MedicalEvidenceLevel.py index 9084a999..76a6b393 100644 --- a/pydantic_schemaorg/MedicalEvidenceLevel.py +++ b/pydantic_schemaorg/MedicalEvidenceLevel.py @@ -11,5 +11,5 @@ class MedicalEvidenceLevel(MedicalEnumeration): See: https://schema.org/MedicalEvidenceLevel Model depth: 5 """ - type_: str = Field(default="MedicalEvidenceLevel", alias='@type', constant=True) + type_: str = Field(default="MedicalEvidenceLevel", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalGuideline.py b/pydantic_schemaorg/MedicalGuideline.py index ee011edc..30924fb5 100644 --- a/pydantic_schemaorg/MedicalGuideline.py +++ b/pydantic_schemaorg/MedicalGuideline.py @@ -20,7 +20,7 @@ class MedicalGuideline(MedicalEntity): See: https://schema.org/MedicalGuideline Model depth: 3 """ - type_: str = Field(default="MedicalGuideline", alias='@type', constant=True) + type_: str = Field(default="MedicalGuideline", alias='@type', const=True) evidenceOrigin: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Source of the data used to formulate the guidance, e.g. RCT, consensus opinion, etc.", diff --git a/pydantic_schemaorg/MedicalGuidelineContraindication.py b/pydantic_schemaorg/MedicalGuidelineContraindication.py index 25555399..a198eb60 100644 --- a/pydantic_schemaorg/MedicalGuidelineContraindication.py +++ b/pydantic_schemaorg/MedicalGuidelineContraindication.py @@ -12,5 +12,5 @@ class MedicalGuidelineContraindication(MedicalGuideline): See: https://schema.org/MedicalGuidelineContraindication Model depth: 4 """ - type_: str = Field(default="MedicalGuidelineContraindication", alias='@type', constant=True) + type_: str = Field(default="MedicalGuidelineContraindication", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalGuidelineRecommendation.py b/pydantic_schemaorg/MedicalGuidelineRecommendation.py index 2a29589e..c0f18f2d 100644 --- a/pydantic_schemaorg/MedicalGuidelineRecommendation.py +++ b/pydantic_schemaorg/MedicalGuidelineRecommendation.py @@ -15,7 +15,7 @@ class MedicalGuidelineRecommendation(MedicalGuideline): See: https://schema.org/MedicalGuidelineRecommendation Model depth: 4 """ - type_: str = Field(default="MedicalGuidelineRecommendation", alias='@type', constant=True) + type_: str = Field(default="MedicalGuidelineRecommendation", alias='@type', const=True) recommendationStrength: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Strength of the guideline's recommendation (e.g. 'class I').", diff --git a/pydantic_schemaorg/MedicalImagingTechnique.py b/pydantic_schemaorg/MedicalImagingTechnique.py index 85e900a0..55d06498 100644 --- a/pydantic_schemaorg/MedicalImagingTechnique.py +++ b/pydantic_schemaorg/MedicalImagingTechnique.py @@ -11,5 +11,5 @@ class MedicalImagingTechnique(MedicalEnumeration): See: https://schema.org/MedicalImagingTechnique Model depth: 5 """ - type_: str = Field(default="MedicalImagingTechnique", alias='@type', constant=True) + type_: str = Field(default="MedicalImagingTechnique", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalIndication.py b/pydantic_schemaorg/MedicalIndication.py index b75de828..0605b0c4 100644 --- a/pydantic_schemaorg/MedicalIndication.py +++ b/pydantic_schemaorg/MedicalIndication.py @@ -12,5 +12,5 @@ class MedicalIndication(MedicalEntity): See: https://schema.org/MedicalIndication Model depth: 3 """ - type_: str = Field(default="MedicalIndication", alias='@type', constant=True) + type_: str = Field(default="MedicalIndication", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalIntangible.py b/pydantic_schemaorg/MedicalIntangible.py index ddda23a3..9ac580fe 100644 --- a/pydantic_schemaorg/MedicalIntangible.py +++ b/pydantic_schemaorg/MedicalIntangible.py @@ -12,5 +12,5 @@ class MedicalIntangible(MedicalEntity): See: https://schema.org/MedicalIntangible Model depth: 3 """ - type_: str = Field(default="MedicalIntangible", alias='@type', constant=True) + type_: str = Field(default="MedicalIntangible", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalObservationalStudy.py b/pydantic_schemaorg/MedicalObservationalStudy.py index 39f32a43..38eb294f 100644 --- a/pydantic_schemaorg/MedicalObservationalStudy.py +++ b/pydantic_schemaorg/MedicalObservationalStudy.py @@ -20,7 +20,7 @@ class MedicalObservationalStudy(MedicalStudy): See: https://schema.org/MedicalObservationalStudy Model depth: 4 """ - type_: str = Field(default="MedicalObservationalStudy", alias='@type', constant=True) + type_: str = Field(default="MedicalObservationalStudy", alias='@type', const=True) studyDesign: Optional[Union[List[Union['MedicalObservationalStudyDesign', str]], 'MedicalObservationalStudyDesign', str]] = Field( default=None, description="Specifics about the observational study design (enumerated).", diff --git a/pydantic_schemaorg/MedicalObservationalStudyDesign.py b/pydantic_schemaorg/MedicalObservationalStudyDesign.py index 2c46550b..c7376f2c 100644 --- a/pydantic_schemaorg/MedicalObservationalStudyDesign.py +++ b/pydantic_schemaorg/MedicalObservationalStudyDesign.py @@ -11,5 +11,5 @@ class MedicalObservationalStudyDesign(MedicalEnumeration): See: https://schema.org/MedicalObservationalStudyDesign Model depth: 5 """ - type_: str = Field(default="MedicalObservationalStudyDesign", alias='@type', constant=True) + type_: str = Field(default="MedicalObservationalStudyDesign", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalOrganization.py b/pydantic_schemaorg/MedicalOrganization.py index ea1e5e80..7d65b730 100644 --- a/pydantic_schemaorg/MedicalOrganization.py +++ b/pydantic_schemaorg/MedicalOrganization.py @@ -15,7 +15,7 @@ class MedicalOrganization(Organization): See: https://schema.org/MedicalOrganization Model depth: 3 """ - type_: str = Field(default="MedicalOrganization", alias='@type', constant=True) + type_: str = Field(default="MedicalOrganization", alias='@type', const=True) medicalSpecialty: Optional[Union[List[Union['MedicalSpecialty', str]], 'MedicalSpecialty', str]] = Field( default=None, description="A medical specialty of the provider.", diff --git a/pydantic_schemaorg/MedicalProcedure.py b/pydantic_schemaorg/MedicalProcedure.py index 96d8d8e1..7d41ca23 100644 --- a/pydantic_schemaorg/MedicalProcedure.py +++ b/pydantic_schemaorg/MedicalProcedure.py @@ -15,7 +15,7 @@ class MedicalProcedure(MedicalEntity): See: https://schema.org/MedicalProcedure Model depth: 3 """ - type_: str = Field(default="MedicalProcedure", alias='@type', constant=True) + type_: str = Field(default="MedicalProcedure", alias='@type', const=True) procedureType: Optional[Union[List[Union['MedicalProcedureType', str]], 'MedicalProcedureType', str]] = Field( default=None, description="The type of procedure, for example Surgical, Noninvasive, or Percutaneous.", @@ -28,7 +28,7 @@ class MedicalProcedure(MedicalEntity): default=None, description="Typical preparation that a patient must undergo before having the procedure performed.", ) - status: Optional[Union[List[Union[str, 'Text', 'EventStatusType', 'MedicalStudyStatus']], str, 'Text', 'EventStatusType', 'MedicalStudyStatus']] = Field( + status: Optional[Union[List[Union[str, 'Text', 'MedicalStudyStatus', 'EventStatusType']], str, 'Text', 'MedicalStudyStatus', 'EventStatusType']] = Field( default=None, description="The status of the study (enumerated).", ) @@ -46,5 +46,5 @@ class MedicalProcedure(MedicalEntity): from pydantic_schemaorg.MedicalProcedureType import MedicalProcedureType from pydantic_schemaorg.Text import Text from pydantic_schemaorg.MedicalEntity import MedicalEntity - from pydantic_schemaorg.EventStatusType import EventStatusType from pydantic_schemaorg.MedicalStudyStatus import MedicalStudyStatus + from pydantic_schemaorg.EventStatusType import EventStatusType diff --git a/pydantic_schemaorg/MedicalProcedureType.py b/pydantic_schemaorg/MedicalProcedureType.py index 6aefe16d..373190d3 100644 --- a/pydantic_schemaorg/MedicalProcedureType.py +++ b/pydantic_schemaorg/MedicalProcedureType.py @@ -11,5 +11,5 @@ class MedicalProcedureType(MedicalEnumeration): See: https://schema.org/MedicalProcedureType Model depth: 5 """ - type_: str = Field(default="MedicalProcedureType", alias='@type', constant=True) + type_: str = Field(default="MedicalProcedureType", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalResearcher.py b/pydantic_schemaorg/MedicalResearcher.py index 9105c893..ab94c14f 100644 --- a/pydantic_schemaorg/MedicalResearcher.py +++ b/pydantic_schemaorg/MedicalResearcher.py @@ -11,5 +11,5 @@ class MedicalResearcher(MedicalAudienceType): See: https://schema.org/MedicalResearcher Model depth: 6 """ - type_: str = Field(default="MedicalResearcher", alias='@type', constant=True) + type_: str = Field(default="MedicalResearcher", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalRiskCalculator.py b/pydantic_schemaorg/MedicalRiskCalculator.py index f03e2ffb..2c7d43ed 100644 --- a/pydantic_schemaorg/MedicalRiskCalculator.py +++ b/pydantic_schemaorg/MedicalRiskCalculator.py @@ -12,5 +12,5 @@ class MedicalRiskCalculator(MedicalRiskEstimator): See: https://schema.org/MedicalRiskCalculator Model depth: 4 """ - type_: str = Field(default="MedicalRiskCalculator", alias='@type', constant=True) + type_: str = Field(default="MedicalRiskCalculator", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalRiskEstimator.py b/pydantic_schemaorg/MedicalRiskEstimator.py index ca9e298f..4feff733 100644 --- a/pydantic_schemaorg/MedicalRiskEstimator.py +++ b/pydantic_schemaorg/MedicalRiskEstimator.py @@ -15,7 +15,7 @@ class MedicalRiskEstimator(MedicalEntity): See: https://schema.org/MedicalRiskEstimator Model depth: 3 """ - type_: str = Field(default="MedicalRiskEstimator", alias='@type', constant=True) + type_: str = Field(default="MedicalRiskEstimator", alias='@type', const=True) estimatesRiskOf: Optional[Union[List[Union['MedicalEntity', str]], 'MedicalEntity', str]] = Field( default=None, description="The condition, complication, or symptom whose risk is being estimated.", diff --git a/pydantic_schemaorg/MedicalRiskFactor.py b/pydantic_schemaorg/MedicalRiskFactor.py index dc731b0b..91081644 100644 --- a/pydantic_schemaorg/MedicalRiskFactor.py +++ b/pydantic_schemaorg/MedicalRiskFactor.py @@ -15,7 +15,7 @@ class MedicalRiskFactor(MedicalEntity): See: https://schema.org/MedicalRiskFactor Model depth: 3 """ - type_: str = Field(default="MedicalRiskFactor", alias='@type', constant=True) + type_: str = Field(default="MedicalRiskFactor", alias='@type', const=True) increasesRiskOf: Optional[Union[List[Union['MedicalEntity', str]], 'MedicalEntity', str]] = Field( default=None, description="The condition, complication, etc. influenced by this factor.", diff --git a/pydantic_schemaorg/MedicalRiskScore.py b/pydantic_schemaorg/MedicalRiskScore.py index ef0391ce..19672f9a 100644 --- a/pydantic_schemaorg/MedicalRiskScore.py +++ b/pydantic_schemaorg/MedicalRiskScore.py @@ -15,7 +15,7 @@ class MedicalRiskScore(MedicalRiskEstimator): See: https://schema.org/MedicalRiskScore Model depth: 4 """ - type_: str = Field(default="MedicalRiskScore", alias='@type', constant=True) + type_: str = Field(default="MedicalRiskScore", alias='@type', const=True) algorithm: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The algorithm or rules to follow to compute the score.", diff --git a/pydantic_schemaorg/MedicalScholarlyArticle.py b/pydantic_schemaorg/MedicalScholarlyArticle.py index 9537edf6..a8fbd90b 100644 --- a/pydantic_schemaorg/MedicalScholarlyArticle.py +++ b/pydantic_schemaorg/MedicalScholarlyArticle.py @@ -14,7 +14,7 @@ class MedicalScholarlyArticle(ScholarlyArticle): See: https://schema.org/MedicalScholarlyArticle Model depth: 5 """ - type_: str = Field(default="MedicalScholarlyArticle", alias='@type', constant=True) + type_: str = Field(default="MedicalScholarlyArticle", alias='@type', const=True) publicationType: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The type of the medical article, taken from the US NLM MeSH publication type catalog." diff --git a/pydantic_schemaorg/MedicalSign.py b/pydantic_schemaorg/MedicalSign.py index b98cfa1b..f83b8d71 100644 --- a/pydantic_schemaorg/MedicalSign.py +++ b/pydantic_schemaorg/MedicalSign.py @@ -15,7 +15,7 @@ class MedicalSign(MedicalSignOrSymptom): See: https://schema.org/MedicalSign Model depth: 5 """ - type_: str = Field(default="MedicalSign", alias='@type', constant=True) + type_: str = Field(default="MedicalSign", alias='@type', const=True) identifyingExam: Optional[Union[List[Union['PhysicalExam', str]], 'PhysicalExam', str]] = Field( default=None, description="A physical examination that can identify this sign.", diff --git a/pydantic_schemaorg/MedicalSignOrSymptom.py b/pydantic_schemaorg/MedicalSignOrSymptom.py index d0ac63e3..905ec60d 100644 --- a/pydantic_schemaorg/MedicalSignOrSymptom.py +++ b/pydantic_schemaorg/MedicalSignOrSymptom.py @@ -15,7 +15,7 @@ class MedicalSignOrSymptom(MedicalCondition): See: https://schema.org/MedicalSignOrSymptom Model depth: 4 """ - type_: str = Field(default="MedicalSignOrSymptom", alias='@type', constant=True) + type_: str = Field(default="MedicalSignOrSymptom", alias='@type', const=True) possibleTreatment: Optional[Union[List[Union['MedicalTherapy', str]], 'MedicalTherapy', str]] = Field( default=None, description="A possible treatment to address this condition, sign or symptom.", diff --git a/pydantic_schemaorg/MedicalSpecialty.py b/pydantic_schemaorg/MedicalSpecialty.py index 754422cc..4985378b 100644 --- a/pydantic_schemaorg/MedicalSpecialty.py +++ b/pydantic_schemaorg/MedicalSpecialty.py @@ -14,5 +14,5 @@ class MedicalSpecialty(MedicalEnumeration, Specialty): See: https://schema.org/MedicalSpecialty Model depth: 5 """ - type_: str = Field(default="MedicalSpecialty", alias='@type', constant=True) + type_: str = Field(default="MedicalSpecialty", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalStudy.py b/pydantic_schemaorg/MedicalStudy.py index 4e89af4d..824ddfdd 100644 --- a/pydantic_schemaorg/MedicalStudy.py +++ b/pydantic_schemaorg/MedicalStudy.py @@ -21,7 +21,7 @@ class MedicalStudy(MedicalEntity): See: https://schema.org/MedicalStudy Model depth: 3 """ - type_: str = Field(default="MedicalStudy", alias='@type', constant=True) + type_: str = Field(default="MedicalStudy", alias='@type', const=True) studyLocation: Optional[Union[List[Union['AdministrativeArea', str]], 'AdministrativeArea', str]] = Field( default=None, description="The location in which the study is taking/took place.", @@ -31,11 +31,11 @@ class MedicalStudy(MedicalEntity): description="A subject of the study, i.e. one of the medical conditions, therapies, devices, drugs," "etc. investigated by the study.", ) - status: Optional[Union[List[Union[str, 'Text', 'EventStatusType', 'MedicalStudyStatus']], str, 'Text', 'EventStatusType', 'MedicalStudyStatus']] = Field( + status: Optional[Union[List[Union[str, 'Text', 'MedicalStudyStatus', 'EventStatusType']], str, 'Text', 'MedicalStudyStatus', 'EventStatusType']] = Field( default=None, description="The status of the study (enumerated).", ) - sponsor: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + sponsor: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A person or organization that supports a thing through a pledge, promise, or financial" "contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.", @@ -50,8 +50,8 @@ class MedicalStudy(MedicalEntity): from pydantic_schemaorg.AdministrativeArea import AdministrativeArea from pydantic_schemaorg.MedicalEntity import MedicalEntity from pydantic_schemaorg.Text import Text - from pydantic_schemaorg.EventStatusType import EventStatusType from pydantic_schemaorg.MedicalStudyStatus import MedicalStudyStatus - from pydantic_schemaorg.Organization import Organization + from pydantic_schemaorg.EventStatusType import EventStatusType from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.MedicalCondition import MedicalCondition diff --git a/pydantic_schemaorg/MedicalStudyStatus.py b/pydantic_schemaorg/MedicalStudyStatus.py index 66a7425e..7296c211 100644 --- a/pydantic_schemaorg/MedicalStudyStatus.py +++ b/pydantic_schemaorg/MedicalStudyStatus.py @@ -11,5 +11,5 @@ class MedicalStudyStatus(MedicalEnumeration): See: https://schema.org/MedicalStudyStatus Model depth: 5 """ - type_: str = Field(default="MedicalStudyStatus", alias='@type', constant=True) + type_: str = Field(default="MedicalStudyStatus", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalSymptom.py b/pydantic_schemaorg/MedicalSymptom.py index 58586a21..54942fc3 100644 --- a/pydantic_schemaorg/MedicalSymptom.py +++ b/pydantic_schemaorg/MedicalSymptom.py @@ -12,5 +12,5 @@ class MedicalSymptom(MedicalSignOrSymptom): See: https://schema.org/MedicalSymptom Model depth: 5 """ - type_: str = Field(default="MedicalSymptom", alias='@type', constant=True) + type_: str = Field(default="MedicalSymptom", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalTest.py b/pydantic_schemaorg/MedicalTest.py index 42b67354..c58792c1 100644 --- a/pydantic_schemaorg/MedicalTest.py +++ b/pydantic_schemaorg/MedicalTest.py @@ -14,7 +14,7 @@ class MedicalTest(MedicalEntity): See: https://schema.org/MedicalTest Model depth: 3 """ - type_: str = Field(default="MedicalTest", alias='@type', constant=True) + type_: str = Field(default="MedicalTest", alias='@type', const=True) usesDevice: Optional[Union[List[Union['MedicalDevice', str]], 'MedicalDevice', str]] = Field( default=None, description="Device used to perform the test.", diff --git a/pydantic_schemaorg/MedicalTestPanel.py b/pydantic_schemaorg/MedicalTestPanel.py index 469748e3..93b84fd4 100644 --- a/pydantic_schemaorg/MedicalTestPanel.py +++ b/pydantic_schemaorg/MedicalTestPanel.py @@ -14,7 +14,7 @@ class MedicalTestPanel(MedicalTest): See: https://schema.org/MedicalTestPanel Model depth: 4 """ - type_: str = Field(default="MedicalTestPanel", alias='@type', constant=True) + type_: str = Field(default="MedicalTestPanel", alias='@type', const=True) subTest: Optional[Union[List[Union['MedicalTest', str]], 'MedicalTest', str]] = Field( default=None, description="A component test of the panel.", diff --git a/pydantic_schemaorg/MedicalTherapy.py b/pydantic_schemaorg/MedicalTherapy.py index b8d7b6c2..a1510d65 100644 --- a/pydantic_schemaorg/MedicalTherapy.py +++ b/pydantic_schemaorg/MedicalTherapy.py @@ -18,7 +18,7 @@ class MedicalTherapy(TherapeuticProcedure): See: https://schema.org/MedicalTherapy Model depth: 5 """ - type_: str = Field(default="MedicalTherapy", alias='@type', constant=True) + type_: str = Field(default="MedicalTherapy", alias='@type', const=True) duplicateTherapy: Optional[Union[List[Union['MedicalTherapy', str]], 'MedicalTherapy', str]] = Field( default=None, description="A therapy that duplicates or overlaps this one.", diff --git a/pydantic_schemaorg/MedicalTrial.py b/pydantic_schemaorg/MedicalTrial.py index 808fa179..0a12fe3b 100644 --- a/pydantic_schemaorg/MedicalTrial.py +++ b/pydantic_schemaorg/MedicalTrial.py @@ -17,7 +17,7 @@ class MedicalTrial(MedicalStudy): See: https://schema.org/MedicalTrial Model depth: 4 """ - type_: str = Field(default="MedicalTrial", alias='@type', constant=True) + type_: str = Field(default="MedicalTrial", alias='@type', const=True) trialDesign: Optional[Union[List[Union['MedicalTrialDesign', str]], 'MedicalTrialDesign', str]] = Field( default=None, description="Specifics about the trial design (enumerated).", diff --git a/pydantic_schemaorg/MedicalTrialDesign.py b/pydantic_schemaorg/MedicalTrialDesign.py index e4eac9b3..adfbe264 100644 --- a/pydantic_schemaorg/MedicalTrialDesign.py +++ b/pydantic_schemaorg/MedicalTrialDesign.py @@ -11,5 +11,5 @@ class MedicalTrialDesign(MedicalEnumeration): See: https://schema.org/MedicalTrialDesign Model depth: 5 """ - type_: str = Field(default="MedicalTrialDesign", alias='@type', constant=True) + type_: str = Field(default="MedicalTrialDesign", alias='@type', const=True) diff --git a/pydantic_schemaorg/MedicalWebPage.py b/pydantic_schemaorg/MedicalWebPage.py index 26762772..66e74790 100644 --- a/pydantic_schemaorg/MedicalWebPage.py +++ b/pydantic_schemaorg/MedicalWebPage.py @@ -14,7 +14,7 @@ class MedicalWebPage(WebPage): See: https://schema.org/MedicalWebPage Model depth: 4 """ - type_: str = Field(default="MedicalWebPage", alias='@type', constant=True) + type_: str = Field(default="MedicalWebPage", alias='@type', const=True) medicalAudience: Optional[Union[List[Union['MedicalAudienceType', 'MedicalAudience', str]], 'MedicalAudienceType', 'MedicalAudience', str]] = Field( default=None, description="Medical audience for page.", diff --git a/pydantic_schemaorg/MedicineSystem.py b/pydantic_schemaorg/MedicineSystem.py index 01ba886f..4ed1cfae 100644 --- a/pydantic_schemaorg/MedicineSystem.py +++ b/pydantic_schemaorg/MedicineSystem.py @@ -11,5 +11,5 @@ class MedicineSystem(MedicalEnumeration): See: https://schema.org/MedicineSystem Model depth: 5 """ - type_: str = Field(default="MedicineSystem", alias='@type', constant=True) + type_: str = Field(default="MedicineSystem", alias='@type', const=True) diff --git a/pydantic_schemaorg/MeetingRoom.py b/pydantic_schemaorg/MeetingRoom.py index 4205b99f..c2e0c5dc 100644 --- a/pydantic_schemaorg/MeetingRoom.py +++ b/pydantic_schemaorg/MeetingRoom.py @@ -15,5 +15,5 @@ class MeetingRoom(Room): See: https://schema.org/MeetingRoom Model depth: 5 """ - type_: str = Field(default="MeetingRoom", alias='@type', constant=True) + type_: str = Field(default="MeetingRoom", alias='@type', const=True) diff --git a/pydantic_schemaorg/MensClothingStore.py b/pydantic_schemaorg/MensClothingStore.py index 9b23c797..7d15e1ef 100644 --- a/pydantic_schemaorg/MensClothingStore.py +++ b/pydantic_schemaorg/MensClothingStore.py @@ -11,5 +11,5 @@ class MensClothingStore(Store): See: https://schema.org/MensClothingStore Model depth: 5 """ - type_: str = Field(default="MensClothingStore", alias='@type', constant=True) + type_: str = Field(default="MensClothingStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/Menu.py b/pydantic_schemaorg/Menu.py index 2bc7f82f..ca724b1c 100644 --- a/pydantic_schemaorg/Menu.py +++ b/pydantic_schemaorg/Menu.py @@ -14,7 +14,7 @@ class Menu(CreativeWork): See: https://schema.org/Menu Model depth: 3 """ - type_: str = Field(default="Menu", alias='@type', constant=True) + type_: str = Field(default="Menu", alias='@type', const=True) hasMenuSection: Optional[Union[List[Union['MenuSection', str]], 'MenuSection', str]] = Field( default=None, description="A subgrouping of the menu (by dishes, course, serving time period, etc.).", diff --git a/pydantic_schemaorg/MenuItem.py b/pydantic_schemaorg/MenuItem.py index 53f08679..ee0604b0 100644 --- a/pydantic_schemaorg/MenuItem.py +++ b/pydantic_schemaorg/MenuItem.py @@ -14,8 +14,8 @@ class MenuItem(Intangible): See: https://schema.org/MenuItem Model depth: 3 """ - type_: str = Field(default="MenuItem", alias='@type', constant=True) - menuAddOn: Optional[Union[List[Union['MenuSection', 'MenuItem', str]], 'MenuSection', 'MenuItem', str]] = Field( + type_: str = Field(default="MenuItem", alias='@type', const=True) + menuAddOn: Optional[Union[List[Union['MenuItem', 'MenuSection', str]], 'MenuItem', 'MenuSection', str]] = Field( default=None, description="Additional menu item(s) such as a side dish of salad or side order of fries that can be added" "to this menu item. Additionally it can be a menu section containing allowed add-on menu" diff --git a/pydantic_schemaorg/MenuSection.py b/pydantic_schemaorg/MenuSection.py index 6343cce8..c3d31e93 100644 --- a/pydantic_schemaorg/MenuSection.py +++ b/pydantic_schemaorg/MenuSection.py @@ -16,7 +16,7 @@ class MenuSection(CreativeWork): See: https://schema.org/MenuSection Model depth: 3 """ - type_: str = Field(default="MenuSection", alias='@type', constant=True) + type_: str = Field(default="MenuSection", alias='@type', const=True) hasMenuSection: Optional[Union[List[Union['MenuSection', str]], 'MenuSection', str]] = Field( default=None, description="A subgrouping of the menu (by dishes, course, serving time period, etc.).", diff --git a/pydantic_schemaorg/MerchantReturnEnumeration.py b/pydantic_schemaorg/MerchantReturnEnumeration.py index b8e9dfc3..49e3e4f9 100644 --- a/pydantic_schemaorg/MerchantReturnEnumeration.py +++ b/pydantic_schemaorg/MerchantReturnEnumeration.py @@ -11,5 +11,5 @@ class MerchantReturnEnumeration(Enumeration): See: https://schema.org/MerchantReturnEnumeration Model depth: 4 """ - type_: str = Field(default="MerchantReturnEnumeration", alias='@type', constant=True) + type_: str = Field(default="MerchantReturnEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/MerchantReturnFiniteReturnWindow.py b/pydantic_schemaorg/MerchantReturnFiniteReturnWindow.py index ed5cf3dc..fa4bc3c9 100644 --- a/pydantic_schemaorg/MerchantReturnFiniteReturnWindow.py +++ b/pydantic_schemaorg/MerchantReturnFiniteReturnWindow.py @@ -11,5 +11,5 @@ class MerchantReturnFiniteReturnWindow(MerchantReturnEnumeration): See: https://schema.org/MerchantReturnFiniteReturnWindow Model depth: 5 """ - type_: str = Field(default="MerchantReturnFiniteReturnWindow", alias='@type', constant=True) + type_: str = Field(default="MerchantReturnFiniteReturnWindow", alias='@type', const=True) diff --git a/pydantic_schemaorg/MerchantReturnNotPermitted.py b/pydantic_schemaorg/MerchantReturnNotPermitted.py index 7b4f7b29..1457a719 100644 --- a/pydantic_schemaorg/MerchantReturnNotPermitted.py +++ b/pydantic_schemaorg/MerchantReturnNotPermitted.py @@ -11,5 +11,5 @@ class MerchantReturnNotPermitted(MerchantReturnEnumeration): See: https://schema.org/MerchantReturnNotPermitted Model depth: 5 """ - type_: str = Field(default="MerchantReturnNotPermitted", alias='@type', constant=True) + type_: str = Field(default="MerchantReturnNotPermitted", alias='@type', const=True) diff --git a/pydantic_schemaorg/MerchantReturnPolicy.py b/pydantic_schemaorg/MerchantReturnPolicy.py index 3e33c3f1..61c3de0b 100644 --- a/pydantic_schemaorg/MerchantReturnPolicy.py +++ b/pydantic_schemaorg/MerchantReturnPolicy.py @@ -2,9 +2,8 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from pydantic import AnyUrl, StrictBool +from pydantic import AnyUrl, StrictBool, StrictInt, StrictFloat from datetime import date, datetime -from decimal import Decimal from pydantic import Field @@ -18,7 +17,7 @@ class MerchantReturnPolicy(Intangible): See: https://schema.org/MerchantReturnPolicy Model depth: 3 """ - type_: str = Field(default="MerchantReturnPolicy", alias='@type', constant=True) + type_: str = Field(default="MerchantReturnPolicy", alias='@type', const=True) customerRemorseReturnFees: Optional[Union[List[Union['ReturnFeesEnumeration', str]], 'ReturnFeesEnumeration', str]] = Field( default=None, description="The type of return fees if the product is returned due to customer remorse.", @@ -51,7 +50,7 @@ class MerchantReturnPolicy(Intangible): description="The method (from an enumeration) by which the customer obtains a return shipping label" "for a defect product.", ) - merchantReturnDays: Optional[Union[List[Union[datetime, 'DateTime', int, 'Integer', date, 'Date', str]], datetime, 'DateTime', int, 'Integer', date, 'Date', str]] = Field( + merchantReturnDays: Optional[Union[List[Union[int, 'Integer', datetime, 'DateTime', date, 'Date', str]], int, 'Integer', datetime, 'DateTime', date, 'Date', str]] = Field( default=None, description="Specifies either a fixed return date or the number of days (from the delivery date) that" "a product can be returned. Used when the [[returnPolicyCategory]] property is specified" @@ -96,7 +95,7 @@ class MerchantReturnPolicy(Intangible): "or service, or the products or services included in the offer. Also used for product return" "policies to specify the condition of products accepted for returns.", ) - restockingFee: Optional[Union[List[Union[int, float, 'Number', 'MonetaryAmount', str]], int, float, 'Number', 'MonetaryAmount', str]] = Field( + restockingFee: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]], StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]] = Field( default=None, description="Use [[MonetaryAmount]] to specify a fixed restocking fee for product returns, or use" "[[Number]] to specify a percentage of the product price paid by the customer.", @@ -128,8 +127,8 @@ class MerchantReturnPolicy(Intangible): from pydantic_schemaorg.Boolean import Boolean from pydantic_schemaorg.URL import URL from pydantic_schemaorg.ReturnLabelSourceEnumeration import ReturnLabelSourceEnumeration - from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Integer import Integer + from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Date import Date from pydantic_schemaorg.MerchantReturnPolicySeasonalOverride import MerchantReturnPolicySeasonalOverride from pydantic_schemaorg.RefundTypeEnumeration import RefundTypeEnumeration diff --git a/pydantic_schemaorg/MerchantReturnPolicySeasonalOverride.py b/pydantic_schemaorg/MerchantReturnPolicySeasonalOverride.py index a0a508c2..9a93be48 100644 --- a/pydantic_schemaorg/MerchantReturnPolicySeasonalOverride.py +++ b/pydantic_schemaorg/MerchantReturnPolicySeasonalOverride.py @@ -15,8 +15,8 @@ class MerchantReturnPolicySeasonalOverride(Intangible): See: https://schema.org/MerchantReturnPolicySeasonalOverride Model depth: 3 """ - type_: str = Field(default="MerchantReturnPolicySeasonalOverride", alias='@type', constant=True) - merchantReturnDays: Optional[Union[List[Union[datetime, 'DateTime', int, 'Integer', date, 'Date', str]], datetime, 'DateTime', int, 'Integer', date, 'Date', str]] = Field( + type_: str = Field(default="MerchantReturnPolicySeasonalOverride", alias='@type', const=True) + merchantReturnDays: Optional[Union[List[Union[int, 'Integer', datetime, 'DateTime', date, 'Date', str]], int, 'Integer', datetime, 'DateTime', date, 'Date', str]] = Field( default=None, description="Specifies either a fixed return date or the number of days (from the delivery date) that" "a product can be returned. Used when the [[returnPolicyCategory]] property is specified" @@ -37,7 +37,7 @@ class MerchantReturnPolicySeasonalOverride(Intangible): if TYPE_CHECKING: - from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Integer import Integer + from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Date import Date from pydantic_schemaorg.MerchantReturnEnumeration import MerchantReturnEnumeration diff --git a/pydantic_schemaorg/MerchantReturnUnlimitedWindow.py b/pydantic_schemaorg/MerchantReturnUnlimitedWindow.py index 4ca9dea7..dfbd6c34 100644 --- a/pydantic_schemaorg/MerchantReturnUnlimitedWindow.py +++ b/pydantic_schemaorg/MerchantReturnUnlimitedWindow.py @@ -11,5 +11,5 @@ class MerchantReturnUnlimitedWindow(MerchantReturnEnumeration): See: https://schema.org/MerchantReturnUnlimitedWindow Model depth: 5 """ - type_: str = Field(default="MerchantReturnUnlimitedWindow", alias='@type', constant=True) + type_: str = Field(default="MerchantReturnUnlimitedWindow", alias='@type', const=True) diff --git a/pydantic_schemaorg/MerchantReturnUnspecified.py b/pydantic_schemaorg/MerchantReturnUnspecified.py index c2d7904a..16351d07 100644 --- a/pydantic_schemaorg/MerchantReturnUnspecified.py +++ b/pydantic_schemaorg/MerchantReturnUnspecified.py @@ -11,5 +11,5 @@ class MerchantReturnUnspecified(MerchantReturnEnumeration): See: https://schema.org/MerchantReturnUnspecified Model depth: 5 """ - type_: str = Field(default="MerchantReturnUnspecified", alias='@type', constant=True) + type_: str = Field(default="MerchantReturnUnspecified", alias='@type', const=True) diff --git a/pydantic_schemaorg/Message.py b/pydantic_schemaorg/Message.py index 77ec95a9..6afdfbb3 100644 --- a/pydantic_schemaorg/Message.py +++ b/pydantic_schemaorg/Message.py @@ -15,20 +15,20 @@ class Message(CreativeWork): See: https://schema.org/Message Model depth: 3 """ - type_: str = Field(default="Message", alias='@type', constant=True) - sender: Optional[Union[List[Union['Organization', 'Person', 'Audience', str]], 'Organization', 'Person', 'Audience', str]] = Field( + type_: str = Field(default="Message", alias='@type', const=True) + sender: Optional[Union[List[Union['Person', 'Audience', 'Organization', str]], 'Person', 'Audience', 'Organization', str]] = Field( default=None, description="A sub property of participant. The participant who is at the sending end of the action.", ) - ccRecipient: Optional[Union[List[Union['Organization', 'Person', 'ContactPoint', str]], 'Organization', 'Person', 'ContactPoint', str]] = Field( + ccRecipient: Optional[Union[List[Union['ContactPoint', 'Organization', 'Person', str]], 'ContactPoint', 'Organization', 'Person', str]] = Field( default=None, description="A sub property of recipient. The recipient copied on a message.", ) - toRecipient: Optional[Union[List[Union['Organization', 'Person', 'ContactPoint', 'Audience', str]], 'Organization', 'Person', 'ContactPoint', 'Audience', str]] = Field( + toRecipient: Optional[Union[List[Union['ContactPoint', 'Audience', 'Organization', 'Person', str]], 'ContactPoint', 'Audience', 'Organization', 'Person', str]] = Field( default=None, description="A sub property of recipient. The recipient who was directly sent the message.", ) - recipient: Optional[Union[List[Union['Organization', 'Person', 'ContactPoint', 'Audience', str]], 'Organization', 'Person', 'ContactPoint', 'Audience', str]] = Field( + recipient: Optional[Union[List[Union['ContactPoint', 'Audience', 'Organization', 'Person', str]], 'ContactPoint', 'Audience', 'Organization', 'Person', str]] = Field( default=None, description="A sub property of participant. The participant who is at the receiving end of the action.", ) @@ -49,16 +49,16 @@ class Message(CreativeWork): default=None, description="The date/time the message was received if a single recipient exists.", ) - bccRecipient: Optional[Union[List[Union['Organization', 'Person', 'ContactPoint', str]], 'Organization', 'Person', 'ContactPoint', str]] = Field( + bccRecipient: Optional[Union[List[Union['ContactPoint', 'Organization', 'Person', str]], 'ContactPoint', 'Organization', 'Person', str]] = Field( default=None, description="A sub property of recipient. The recipient blind copied on a message.", ) if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person from pydantic_schemaorg.Audience import Audience + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.ContactPoint import ContactPoint from pydantic_schemaorg.CreativeWork import CreativeWork from pydantic_schemaorg.DateTime import DateTime diff --git a/pydantic_schemaorg/MiddleSchool.py b/pydantic_schemaorg/MiddleSchool.py index 349561d0..ab716540 100644 --- a/pydantic_schemaorg/MiddleSchool.py +++ b/pydantic_schemaorg/MiddleSchool.py @@ -11,5 +11,5 @@ class MiddleSchool(EducationalOrganization): See: https://schema.org/MiddleSchool Model depth: 4 """ - type_: str = Field(default="MiddleSchool", alias='@type', constant=True) + type_: str = Field(default="MiddleSchool", alias='@type', const=True) diff --git a/pydantic_schemaorg/Midwifery.py b/pydantic_schemaorg/Midwifery.py index 7e3075fb..4ced9ed2 100644 --- a/pydantic_schemaorg/Midwifery.py +++ b/pydantic_schemaorg/Midwifery.py @@ -14,5 +14,5 @@ class Midwifery(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Midwifery Model depth: 5 """ - type_: str = Field(default="Midwifery", alias='@type', constant=True) + type_: str = Field(default="Midwifery", alias='@type', const=True) diff --git a/pydantic_schemaorg/MinimumAdvertisedPrice.py b/pydantic_schemaorg/MinimumAdvertisedPrice.py index dbe54d71..4afff6bd 100644 --- a/pydantic_schemaorg/MinimumAdvertisedPrice.py +++ b/pydantic_schemaorg/MinimumAdvertisedPrice.py @@ -12,5 +12,5 @@ class MinimumAdvertisedPrice(PriceTypeEnumeration): See: https://schema.org/MinimumAdvertisedPrice Model depth: 5 """ - type_: str = Field(default="MinimumAdvertisedPrice", alias='@type', constant=True) + type_: str = Field(default="MinimumAdvertisedPrice", alias='@type', const=True) diff --git a/pydantic_schemaorg/MisconceptionsHealthAspect.py b/pydantic_schemaorg/MisconceptionsHealthAspect.py index 351e8d51..80d15daa 100644 --- a/pydantic_schemaorg/MisconceptionsHealthAspect.py +++ b/pydantic_schemaorg/MisconceptionsHealthAspect.py @@ -11,5 +11,5 @@ class MisconceptionsHealthAspect(HealthAspectEnumeration): See: https://schema.org/MisconceptionsHealthAspect Model depth: 5 """ - type_: str = Field(default="MisconceptionsHealthAspect", alias='@type', constant=True) + type_: str = Field(default="MisconceptionsHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/MixedEventAttendanceMode.py b/pydantic_schemaorg/MixedEventAttendanceMode.py index 82d64667..c007c5d3 100644 --- a/pydantic_schemaorg/MixedEventAttendanceMode.py +++ b/pydantic_schemaorg/MixedEventAttendanceMode.py @@ -12,5 +12,5 @@ class MixedEventAttendanceMode(EventAttendanceModeEnumeration): See: https://schema.org/MixedEventAttendanceMode Model depth: 5 """ - type_: str = Field(default="MixedEventAttendanceMode", alias='@type', constant=True) + type_: str = Field(default="MixedEventAttendanceMode", alias='@type', const=True) diff --git a/pydantic_schemaorg/MixtapeAlbum.py b/pydantic_schemaorg/MixtapeAlbum.py index 3bb2ec2a..67f25fe7 100644 --- a/pydantic_schemaorg/MixtapeAlbum.py +++ b/pydantic_schemaorg/MixtapeAlbum.py @@ -11,5 +11,5 @@ class MixtapeAlbum(MusicAlbumProductionType): See: https://schema.org/MixtapeAlbum Model depth: 5 """ - type_: str = Field(default="MixtapeAlbum", alias='@type', constant=True) + type_: str = Field(default="MixtapeAlbum", alias='@type', const=True) diff --git a/pydantic_schemaorg/MobileApplication.py b/pydantic_schemaorg/MobileApplication.py index 75c466df..612e4b4f 100644 --- a/pydantic_schemaorg/MobileApplication.py +++ b/pydantic_schemaorg/MobileApplication.py @@ -15,7 +15,7 @@ class MobileApplication(SoftwareApplication): See: https://schema.org/MobileApplication Model depth: 4 """ - type_: str = Field(default="MobileApplication", alias='@type', constant=True) + type_: str = Field(default="MobileApplication", alias='@type', const=True) carrierRequirements: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Specifies specific carrier(s) requirements for the application (e.g. an application" diff --git a/pydantic_schemaorg/MobilePhoneStore.py b/pydantic_schemaorg/MobilePhoneStore.py index a5678230..eb4e8a03 100644 --- a/pydantic_schemaorg/MobilePhoneStore.py +++ b/pydantic_schemaorg/MobilePhoneStore.py @@ -11,5 +11,5 @@ class MobilePhoneStore(Store): See: https://schema.org/MobilePhoneStore Model depth: 5 """ - type_: str = Field(default="MobilePhoneStore", alias='@type', constant=True) + type_: str = Field(default="MobilePhoneStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/MolecularEntity.py b/pydantic_schemaorg/MolecularEntity.py index dee981a0..8a87b388 100644 --- a/pydantic_schemaorg/MolecularEntity.py +++ b/pydantic_schemaorg/MolecularEntity.py @@ -16,7 +16,7 @@ class MolecularEntity(BioChemEntity): See: https://schema.org/MolecularEntity Model depth: 3 """ - type_: str = Field(default="MolecularEntity", alias='@type', constant=True) + type_: str = Field(default="MolecularEntity", alias='@type', const=True) iupacName: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Systematic method of naming chemical compounds as recommended by the International" diff --git a/pydantic_schemaorg/Monday.py b/pydantic_schemaorg/Monday.py index a24a541d..6c152059 100644 --- a/pydantic_schemaorg/Monday.py +++ b/pydantic_schemaorg/Monday.py @@ -11,5 +11,5 @@ class Monday(DayOfWeek): See: https://schema.org/Monday Model depth: 5 """ - type_: str = Field(default="Monday", alias='@type', constant=True) + type_: str = Field(default="Monday", alias='@type', const=True) diff --git a/pydantic_schemaorg/MonetaryAmount.py b/pydantic_schemaorg/MonetaryAmount.py index 07c05c98..c1e5395d 100644 --- a/pydantic_schemaorg/MonetaryAmount.py +++ b/pydantic_schemaorg/MonetaryAmount.py @@ -1,10 +1,9 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictBool, StrictInt, StrictFloat from typing import List, Optional, Union from datetime import date, datetime -from pydantic import StrictBool from pydantic import Field @@ -20,8 +19,8 @@ class MonetaryAmount(StructuredValue): See: https://schema.org/MonetaryAmount Model depth: 4 """ - type_: str = Field(default="MonetaryAmount", alias='@type', constant=True) - minValue: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + type_: str = Field(default="MonetaryAmount", alias='@type', const=True) + minValue: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The lower value of some characteristic or property.", ) @@ -29,7 +28,7 @@ class MonetaryAmount(StructuredValue): default=None, description="The date when the item becomes valid.", ) - value: Optional[Union[List[Union[int, float, 'Number', str, 'Text', StrictBool, 'Boolean', 'StructuredValue']], int, float, 'Number', str, 'Text', StrictBool, 'Boolean', 'StructuredValue']] = Field( + value: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text', StrictBool, 'Boolean', 'StructuredValue']], StrictInt, StrictFloat, 'Number', str, 'Text', StrictBool, 'Boolean', 'StructuredValue']] = Field( default=None, description="The value of the quantitative value or property value node. * For [[QuantitativeValue]]" "and [[MonetaryAmount]], the recommended type for values is 'Number'. * For [[PropertyValue]]," @@ -43,7 +42,7 @@ class MonetaryAmount(StructuredValue): description="The date after when the item is not valid. For example the end of an offer, salary period," "or a period of opening hours.", ) - maxValue: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + maxValue: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The upper value of some characteristic or property.", ) diff --git a/pydantic_schemaorg/MonetaryAmountDistribution.py b/pydantic_schemaorg/MonetaryAmountDistribution.py index 0c504a70..c8bee175 100644 --- a/pydantic_schemaorg/MonetaryAmountDistribution.py +++ b/pydantic_schemaorg/MonetaryAmountDistribution.py @@ -14,7 +14,7 @@ class MonetaryAmountDistribution(QuantitativeValueDistribution): See: https://schema.org/MonetaryAmountDistribution Model depth: 5 """ - type_: str = Field(default="MonetaryAmountDistribution", alias='@type', constant=True) + type_: str = Field(default="MonetaryAmountDistribution", alias='@type', const=True) currency: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The currency in which the monetary amount is expressed. Use standard formats: [ISO 4217" diff --git a/pydantic_schemaorg/MonetaryGrant.py b/pydantic_schemaorg/MonetaryGrant.py index 135f1fdb..611e59f4 100644 --- a/pydantic_schemaorg/MonetaryGrant.py +++ b/pydantic_schemaorg/MonetaryGrant.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -15,20 +15,20 @@ class MonetaryGrant(Grant): See: https://schema.org/MonetaryGrant Model depth: 4 """ - type_: str = Field(default="MonetaryGrant", alias='@type', constant=True) - funder: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + type_: str = Field(default="MonetaryGrant", alias='@type', const=True) + funder: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A person or organization that supports (sponsors) something through some kind of financial" "contribution.", ) - amount: Optional[Union[List[Union[int, float, 'Number', 'MonetaryAmount', str]], int, float, 'Number', 'MonetaryAmount', str]] = Field( + amount: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]], StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]] = Field( default=None, description="The amount of money.", ) if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Number import Number from pydantic_schemaorg.MonetaryAmount import MonetaryAmount diff --git a/pydantic_schemaorg/MoneyTransfer.py b/pydantic_schemaorg/MoneyTransfer.py index d90e4fa9..b562c5aa 100644 --- a/pydantic_schemaorg/MoneyTransfer.py +++ b/pydantic_schemaorg/MoneyTransfer.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -16,8 +16,8 @@ class MoneyTransfer(TransferAction): See: https://schema.org/MoneyTransfer Model depth: 4 """ - type_: str = Field(default="MoneyTransfer", alias='@type', constant=True) - amount: Optional[Union[List[Union[int, float, 'Number', 'MonetaryAmount', str]], int, float, 'Number', 'MonetaryAmount', str]] = Field( + type_: str = Field(default="MoneyTransfer", alias='@type', const=True) + amount: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]], StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]] = Field( default=None, description="The amount of money.", ) diff --git a/pydantic_schemaorg/MortgageLoan.py b/pydantic_schemaorg/MortgageLoan.py index 96b80eea..19d9b803 100644 --- a/pydantic_schemaorg/MortgageLoan.py +++ b/pydantic_schemaorg/MortgageLoan.py @@ -16,7 +16,7 @@ class MortgageLoan(LoanOrCredit): See: https://schema.org/MortgageLoan Model depth: 6 """ - type_: str = Field(default="MortgageLoan", alias='@type', constant=True) + type_: str = Field(default="MortgageLoan", alias='@type', const=True) domiciledMortgage: Optional[Union[List[Union[StrictBool, 'Boolean', str]], StrictBool, 'Boolean', str]] = Field( default=None, description="Whether borrower is a resident of the jurisdiction where the property is located.", diff --git a/pydantic_schemaorg/Mosque.py b/pydantic_schemaorg/Mosque.py index 568f07a6..0dfa1e44 100644 --- a/pydantic_schemaorg/Mosque.py +++ b/pydantic_schemaorg/Mosque.py @@ -11,5 +11,5 @@ class Mosque(PlaceOfWorship): See: https://schema.org/Mosque Model depth: 5 """ - type_: str = Field(default="Mosque", alias='@type', constant=True) + type_: str = Field(default="Mosque", alias='@type', const=True) diff --git a/pydantic_schemaorg/Motel.py b/pydantic_schemaorg/Motel.py index b67afb16..fb69fc26 100644 --- a/pydantic_schemaorg/Motel.py +++ b/pydantic_schemaorg/Motel.py @@ -12,5 +12,5 @@ class Motel(LodgingBusiness): See: https://schema.org/Motel Model depth: 5 """ - type_: str = Field(default="Motel", alias='@type', constant=True) + type_: str = Field(default="Motel", alias='@type', const=True) diff --git a/pydantic_schemaorg/Motorcycle.py b/pydantic_schemaorg/Motorcycle.py index 42c23c8a..d3acfec4 100644 --- a/pydantic_schemaorg/Motorcycle.py +++ b/pydantic_schemaorg/Motorcycle.py @@ -11,5 +11,5 @@ class Motorcycle(Vehicle): See: https://schema.org/Motorcycle Model depth: 4 """ - type_: str = Field(default="Motorcycle", alias='@type', constant=True) + type_: str = Field(default="Motorcycle", alias='@type', const=True) diff --git a/pydantic_schemaorg/MotorcycleDealer.py b/pydantic_schemaorg/MotorcycleDealer.py index 0d2bc094..fa96f4c2 100644 --- a/pydantic_schemaorg/MotorcycleDealer.py +++ b/pydantic_schemaorg/MotorcycleDealer.py @@ -11,5 +11,5 @@ class MotorcycleDealer(AutomotiveBusiness): See: https://schema.org/MotorcycleDealer Model depth: 5 """ - type_: str = Field(default="MotorcycleDealer", alias='@type', constant=True) + type_: str = Field(default="MotorcycleDealer", alias='@type', const=True) diff --git a/pydantic_schemaorg/MotorcycleRepair.py b/pydantic_schemaorg/MotorcycleRepair.py index b7993dc5..c1ba92c2 100644 --- a/pydantic_schemaorg/MotorcycleRepair.py +++ b/pydantic_schemaorg/MotorcycleRepair.py @@ -11,5 +11,5 @@ class MotorcycleRepair(AutomotiveBusiness): See: https://schema.org/MotorcycleRepair Model depth: 5 """ - type_: str = Field(default="MotorcycleRepair", alias='@type', constant=True) + type_: str = Field(default="MotorcycleRepair", alias='@type', const=True) diff --git a/pydantic_schemaorg/MotorizedBicycle.py b/pydantic_schemaorg/MotorizedBicycle.py index 9ab5f1cd..4b8d13a6 100644 --- a/pydantic_schemaorg/MotorizedBicycle.py +++ b/pydantic_schemaorg/MotorizedBicycle.py @@ -12,5 +12,5 @@ class MotorizedBicycle(Vehicle): See: https://schema.org/MotorizedBicycle Model depth: 4 """ - type_: str = Field(default="MotorizedBicycle", alias='@type', constant=True) + type_: str = Field(default="MotorizedBicycle", alias='@type', const=True) diff --git a/pydantic_schemaorg/Mountain.py b/pydantic_schemaorg/Mountain.py index 5d429ab9..b35d4200 100644 --- a/pydantic_schemaorg/Mountain.py +++ b/pydantic_schemaorg/Mountain.py @@ -11,5 +11,5 @@ class Mountain(Landform): See: https://schema.org/Mountain Model depth: 4 """ - type_: str = Field(default="Mountain", alias='@type', constant=True) + type_: str = Field(default="Mountain", alias='@type', const=True) diff --git a/pydantic_schemaorg/MoveAction.py b/pydantic_schemaorg/MoveAction.py index fc9fe5c9..6326efbf 100644 --- a/pydantic_schemaorg/MoveAction.py +++ b/pydantic_schemaorg/MoveAction.py @@ -16,7 +16,7 @@ class MoveAction(Action): See: https://schema.org/MoveAction Model depth: 3 """ - type_: str = Field(default="MoveAction", alias='@type', constant=True) + type_: str = Field(default="MoveAction", alias='@type', const=True) fromLocation: Optional[Union[List[Union['Place', str]], 'Place', str]] = Field( default=None, description="A sub property of location. The original location of the object or the agent before the" diff --git a/pydantic_schemaorg/Movie.py b/pydantic_schemaorg/Movie.py index 63152f15..8fe88f13 100644 --- a/pydantic_schemaorg/Movie.py +++ b/pydantic_schemaorg/Movie.py @@ -15,7 +15,7 @@ class Movie(CreativeWork): See: https://schema.org/Movie Model depth: 3 """ - type_: str = Field(default="Movie", alias='@type', constant=True) + type_: str = Field(default="Movie", alias='@type', const=True) actors: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual" diff --git a/pydantic_schemaorg/MovieClip.py b/pydantic_schemaorg/MovieClip.py index 288de5c4..13cb8041 100644 --- a/pydantic_schemaorg/MovieClip.py +++ b/pydantic_schemaorg/MovieClip.py @@ -11,5 +11,5 @@ class MovieClip(Clip): See: https://schema.org/MovieClip Model depth: 4 """ - type_: str = Field(default="MovieClip", alias='@type', constant=True) + type_: str = Field(default="MovieClip", alias='@type', const=True) diff --git a/pydantic_schemaorg/MovieRentalStore.py b/pydantic_schemaorg/MovieRentalStore.py index e82d8015..d12899c2 100644 --- a/pydantic_schemaorg/MovieRentalStore.py +++ b/pydantic_schemaorg/MovieRentalStore.py @@ -11,5 +11,5 @@ class MovieRentalStore(Store): See: https://schema.org/MovieRentalStore Model depth: 5 """ - type_: str = Field(default="MovieRentalStore", alias='@type', constant=True) + type_: str = Field(default="MovieRentalStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/MovieSeries.py b/pydantic_schemaorg/MovieSeries.py index e4f6340b..26ae9098 100644 --- a/pydantic_schemaorg/MovieSeries.py +++ b/pydantic_schemaorg/MovieSeries.py @@ -14,7 +14,7 @@ class MovieSeries(CreativeWorkSeries): See: https://schema.org/MovieSeries Model depth: 4 """ - type_: str = Field(default="MovieSeries", alias='@type', constant=True) + type_: str = Field(default="MovieSeries", alias='@type', const=True) actors: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual" diff --git a/pydantic_schemaorg/MovieTheater.py b/pydantic_schemaorg/MovieTheater.py index b6d5d29e..514c65f8 100644 --- a/pydantic_schemaorg/MovieTheater.py +++ b/pydantic_schemaorg/MovieTheater.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -16,8 +16,8 @@ class MovieTheater(EntertainmentBusiness, CivicStructure): See: https://schema.org/MovieTheater Model depth: 4 """ - type_: str = Field(default="MovieTheater", alias='@type', constant=True) - screenCount: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + type_: str = Field(default="MovieTheater", alias='@type', const=True) + screenCount: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The number of screens in the movie theater.", ) diff --git a/pydantic_schemaorg/MovingCompany.py b/pydantic_schemaorg/MovingCompany.py index f1f08de9..07a1ac19 100644 --- a/pydantic_schemaorg/MovingCompany.py +++ b/pydantic_schemaorg/MovingCompany.py @@ -11,5 +11,5 @@ class MovingCompany(HomeAndConstructionBusiness): See: https://schema.org/MovingCompany Model depth: 5 """ - type_: str = Field(default="MovingCompany", alias='@type', constant=True) + type_: str = Field(default="MovingCompany", alias='@type', const=True) diff --git a/pydantic_schemaorg/MultiCenterTrial.py b/pydantic_schemaorg/MultiCenterTrial.py index 9878be65..b90c85b1 100644 --- a/pydantic_schemaorg/MultiCenterTrial.py +++ b/pydantic_schemaorg/MultiCenterTrial.py @@ -11,5 +11,5 @@ class MultiCenterTrial(MedicalTrialDesign): See: https://schema.org/MultiCenterTrial Model depth: 6 """ - type_: str = Field(default="MultiCenterTrial", alias='@type', constant=True) + type_: str = Field(default="MultiCenterTrial", alias='@type', const=True) diff --git a/pydantic_schemaorg/MultiPlayer.py b/pydantic_schemaorg/MultiPlayer.py index e10a2659..75712465 100644 --- a/pydantic_schemaorg/MultiPlayer.py +++ b/pydantic_schemaorg/MultiPlayer.py @@ -11,5 +11,5 @@ class MultiPlayer(GamePlayMode): See: https://schema.org/MultiPlayer Model depth: 5 """ - type_: str = Field(default="MultiPlayer", alias='@type', constant=True) + type_: str = Field(default="MultiPlayer", alias='@type', const=True) diff --git a/pydantic_schemaorg/MulticellularParasite.py b/pydantic_schemaorg/MulticellularParasite.py index 2cbe1859..55ff4425 100644 --- a/pydantic_schemaorg/MulticellularParasite.py +++ b/pydantic_schemaorg/MulticellularParasite.py @@ -11,5 +11,5 @@ class MulticellularParasite(InfectiousAgentClass): See: https://schema.org/MulticellularParasite Model depth: 6 """ - type_: str = Field(default="MulticellularParasite", alias='@type', constant=True) + type_: str = Field(default="MulticellularParasite", alias='@type', const=True) diff --git a/pydantic_schemaorg/Muscle.py b/pydantic_schemaorg/Muscle.py index cd3f4fd8..9aa0a98c 100644 --- a/pydantic_schemaorg/Muscle.py +++ b/pydantic_schemaorg/Muscle.py @@ -15,7 +15,7 @@ class Muscle(AnatomicalStructure): See: https://schema.org/Muscle Model depth: 4 """ - type_: str = Field(default="Muscle", alias='@type', constant=True) + type_: str = Field(default="Muscle", alias='@type', const=True) nerve: Optional[Union[List[Union['Nerve', str]], 'Nerve', str]] = Field( default=None, description="The underlying innervation associated with the muscle.", diff --git a/pydantic_schemaorg/Musculoskeletal.py b/pydantic_schemaorg/Musculoskeletal.py index 9fac163a..1b7ced5c 100644 --- a/pydantic_schemaorg/Musculoskeletal.py +++ b/pydantic_schemaorg/Musculoskeletal.py @@ -12,5 +12,5 @@ class Musculoskeletal(MedicalSpecialty): See: https://schema.org/Musculoskeletal Model depth: 6 """ - type_: str = Field(default="Musculoskeletal", alias='@type', constant=True) + type_: str = Field(default="Musculoskeletal", alias='@type', const=True) diff --git a/pydantic_schemaorg/MusculoskeletalExam.py b/pydantic_schemaorg/MusculoskeletalExam.py index 4c11fad0..817eb1b0 100644 --- a/pydantic_schemaorg/MusculoskeletalExam.py +++ b/pydantic_schemaorg/MusculoskeletalExam.py @@ -11,5 +11,5 @@ class MusculoskeletalExam(PhysicalExam): See: https://schema.org/MusculoskeletalExam Model depth: 5 """ - type_: str = Field(default="MusculoskeletalExam", alias='@type', constant=True) + type_: str = Field(default="MusculoskeletalExam", alias='@type', const=True) diff --git a/pydantic_schemaorg/Museum.py b/pydantic_schemaorg/Museum.py index 4524dcd5..cd631c21 100644 --- a/pydantic_schemaorg/Museum.py +++ b/pydantic_schemaorg/Museum.py @@ -11,5 +11,5 @@ class Museum(CivicStructure): See: https://schema.org/Museum Model depth: 4 """ - type_: str = Field(default="Museum", alias='@type', constant=True) + type_: str = Field(default="Museum", alias='@type', const=True) diff --git a/pydantic_schemaorg/MusicAlbum.py b/pydantic_schemaorg/MusicAlbum.py index 35e3e787..0dea033e 100644 --- a/pydantic_schemaorg/MusicAlbum.py +++ b/pydantic_schemaorg/MusicAlbum.py @@ -14,7 +14,7 @@ class MusicAlbum(MusicPlaylist): See: https://schema.org/MusicAlbum Model depth: 4 """ - type_: str = Field(default="MusicAlbum", alias='@type', constant=True) + type_: str = Field(default="MusicAlbum", alias='@type', const=True) albumProductionType: Optional[Union[List[Union['MusicAlbumProductionType', str]], 'MusicAlbumProductionType', str]] = Field( default=None, description="Classification of the album by it's type of content: soundtrack, live album, studio" @@ -24,7 +24,7 @@ class MusicAlbum(MusicPlaylist): default=None, description="The kind of release which this album is: single, EP or album.", ) - byArtist: Optional[Union[List[Union['Person', 'MusicGroup', str]], 'Person', 'MusicGroup', str]] = Field( + byArtist: Optional[Union[List[Union['MusicGroup', 'Person', str]], 'MusicGroup', 'Person', str]] = Field( default=None, description="The artist that performed this album or recording.", ) @@ -37,6 +37,6 @@ class MusicAlbum(MusicPlaylist): if TYPE_CHECKING: from pydantic_schemaorg.MusicAlbumProductionType import MusicAlbumProductionType from pydantic_schemaorg.MusicAlbumReleaseType import MusicAlbumReleaseType - from pydantic_schemaorg.Person import Person from pydantic_schemaorg.MusicGroup import MusicGroup + from pydantic_schemaorg.Person import Person from pydantic_schemaorg.MusicRelease import MusicRelease diff --git a/pydantic_schemaorg/MusicAlbumProductionType.py b/pydantic_schemaorg/MusicAlbumProductionType.py index 69235bec..c01b1b03 100644 --- a/pydantic_schemaorg/MusicAlbumProductionType.py +++ b/pydantic_schemaorg/MusicAlbumProductionType.py @@ -12,5 +12,5 @@ class MusicAlbumProductionType(Enumeration): See: https://schema.org/MusicAlbumProductionType Model depth: 4 """ - type_: str = Field(default="MusicAlbumProductionType", alias='@type', constant=True) + type_: str = Field(default="MusicAlbumProductionType", alias='@type', const=True) diff --git a/pydantic_schemaorg/MusicAlbumReleaseType.py b/pydantic_schemaorg/MusicAlbumReleaseType.py index e4d4ec56..32bb1f53 100644 --- a/pydantic_schemaorg/MusicAlbumReleaseType.py +++ b/pydantic_schemaorg/MusicAlbumReleaseType.py @@ -11,5 +11,5 @@ class MusicAlbumReleaseType(Enumeration): See: https://schema.org/MusicAlbumReleaseType Model depth: 4 """ - type_: str = Field(default="MusicAlbumReleaseType", alias='@type', constant=True) + type_: str = Field(default="MusicAlbumReleaseType", alias='@type', const=True) diff --git a/pydantic_schemaorg/MusicComposition.py b/pydantic_schemaorg/MusicComposition.py index 0a60c5a9..fcf435da 100644 --- a/pydantic_schemaorg/MusicComposition.py +++ b/pydantic_schemaorg/MusicComposition.py @@ -14,8 +14,8 @@ class MusicComposition(CreativeWork): See: https://schema.org/MusicComposition Model depth: 3 """ - type_: str = Field(default="MusicComposition", alias='@type', constant=True) - composer: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + type_: str = Field(default="MusicComposition", alias='@type', const=True) + composer: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The person or organization who wrote a composition, or who is the composer of a work performed" "at some event.", @@ -59,8 +59,8 @@ class MusicComposition(CreativeWork): if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.CreativeWork import CreativeWork from pydantic_schemaorg.Text import Text from pydantic_schemaorg.MusicRecording import MusicRecording diff --git a/pydantic_schemaorg/MusicEvent.py b/pydantic_schemaorg/MusicEvent.py index 1c8a3006..2209b7c9 100644 --- a/pydantic_schemaorg/MusicEvent.py +++ b/pydantic_schemaorg/MusicEvent.py @@ -11,5 +11,5 @@ class MusicEvent(Event): See: https://schema.org/MusicEvent Model depth: 3 """ - type_: str = Field(default="MusicEvent", alias='@type', constant=True) + type_: str = Field(default="MusicEvent", alias='@type', const=True) diff --git a/pydantic_schemaorg/MusicGroup.py b/pydantic_schemaorg/MusicGroup.py index 38f58734..2c0d78da 100644 --- a/pydantic_schemaorg/MusicGroup.py +++ b/pydantic_schemaorg/MusicGroup.py @@ -15,7 +15,7 @@ class MusicGroup(PerformingGroup): See: https://schema.org/MusicGroup Model depth: 4 """ - type_: str = Field(default="MusicGroup", alias='@type', constant=True) + type_: str = Field(default="MusicGroup", alias='@type', const=True) genre: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text']], AnyUrl, 'URL', str, 'Text']] = Field( default=None, description="Genre of the creative work, broadcast channel or group.", @@ -28,7 +28,7 @@ class MusicGroup(PerformingGroup): default=None, description="A music recording (track)—usually a single song.", ) - track: Optional[Union[List[Union['MusicRecording', 'ItemList', str]], 'MusicRecording', 'ItemList', str]] = Field( + track: Optional[Union[List[Union['ItemList', 'MusicRecording', str]], 'ItemList', 'MusicRecording', str]] = Field( default=None, description="A music recording (track)—usually a single song. If an ItemList is given, the" "list should contain items of type MusicRecording.", diff --git a/pydantic_schemaorg/MusicPlaylist.py b/pydantic_schemaorg/MusicPlaylist.py index 030cdee9..65aa91d1 100644 --- a/pydantic_schemaorg/MusicPlaylist.py +++ b/pydantic_schemaorg/MusicPlaylist.py @@ -14,7 +14,7 @@ class MusicPlaylist(CreativeWork): See: https://schema.org/MusicPlaylist Model depth: 3 """ - type_: str = Field(default="MusicPlaylist", alias='@type', constant=True) + type_: str = Field(default="MusicPlaylist", alias='@type', const=True) numTracks: Optional[Union[List[Union[int, 'Integer', str]], int, 'Integer', str]] = Field( default=None, description="The number of tracks in this album or playlist.", @@ -23,7 +23,7 @@ class MusicPlaylist(CreativeWork): default=None, description="A music recording (track)—usually a single song.", ) - track: Optional[Union[List[Union['MusicRecording', 'ItemList', str]], 'MusicRecording', 'ItemList', str]] = Field( + track: Optional[Union[List[Union['ItemList', 'MusicRecording', str]], 'ItemList', 'MusicRecording', str]] = Field( default=None, description="A music recording (track)—usually a single song. If an ItemList is given, the" "list should contain items of type MusicRecording.", diff --git a/pydantic_schemaorg/MusicRecording.py b/pydantic_schemaorg/MusicRecording.py index 4d15dc84..7cdd10ac 100644 --- a/pydantic_schemaorg/MusicRecording.py +++ b/pydantic_schemaorg/MusicRecording.py @@ -14,7 +14,7 @@ class MusicRecording(CreativeWork): See: https://schema.org/MusicRecording Model depth: 3 """ - type_: str = Field(default="MusicRecording", alias='@type', constant=True) + type_: str = Field(default="MusicRecording", alias='@type', const=True) inPlaylist: Optional[Union[List[Union['MusicPlaylist', str]], 'MusicPlaylist', str]] = Field( default=None, description="The playlist to which this recording belongs.", @@ -23,7 +23,7 @@ class MusicRecording(CreativeWork): default=None, description="The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).", ) - byArtist: Optional[Union[List[Union['Person', 'MusicGroup', str]], 'Person', 'MusicGroup', str]] = Field( + byArtist: Optional[Union[List[Union['MusicGroup', 'Person', str]], 'MusicGroup', 'Person', str]] = Field( default=None, description="The artist that performed this album or recording.", ) @@ -44,8 +44,8 @@ class MusicRecording(CreativeWork): if TYPE_CHECKING: from pydantic_schemaorg.MusicPlaylist import MusicPlaylist from pydantic_schemaorg.Duration import Duration - from pydantic_schemaorg.Person import Person from pydantic_schemaorg.MusicGroup import MusicGroup + from pydantic_schemaorg.Person import Person from pydantic_schemaorg.MusicAlbum import MusicAlbum from pydantic_schemaorg.MusicComposition import MusicComposition from pydantic_schemaorg.Text import Text diff --git a/pydantic_schemaorg/MusicRelease.py b/pydantic_schemaorg/MusicRelease.py index 1466eb9e..77e54811 100644 --- a/pydantic_schemaorg/MusicRelease.py +++ b/pydantic_schemaorg/MusicRelease.py @@ -14,7 +14,7 @@ class MusicRelease(MusicPlaylist): See: https://schema.org/MusicRelease Model depth: 4 """ - type_: str = Field(default="MusicRelease", alias='@type', constant=True) + type_: str = Field(default="MusicRelease", alias='@type', const=True) releaseOf: Optional[Union[List[Union['MusicAlbum', str]], 'MusicAlbum', str]] = Field( default=None, description="The album this is a release of.", @@ -32,7 +32,7 @@ class MusicRelease(MusicPlaylist): description="Format of this release (the type of recording media used, ie. compact disc, digital media," "LP, etc.).", ) - creditedTo: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + creditedTo: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The group the release is credited to if different than the byArtist. For example, Red" "and Blue is credited to \"Stefani Germanotta Band\", but by Lady Gaga.", @@ -48,5 +48,5 @@ class MusicRelease(MusicPlaylist): from pydantic_schemaorg.Duration import Duration from pydantic_schemaorg.Text import Text from pydantic_schemaorg.MusicReleaseFormatType import MusicReleaseFormatType - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization diff --git a/pydantic_schemaorg/MusicReleaseFormatType.py b/pydantic_schemaorg/MusicReleaseFormatType.py index ede278d7..48fd6017 100644 --- a/pydantic_schemaorg/MusicReleaseFormatType.py +++ b/pydantic_schemaorg/MusicReleaseFormatType.py @@ -12,5 +12,5 @@ class MusicReleaseFormatType(Enumeration): See: https://schema.org/MusicReleaseFormatType Model depth: 4 """ - type_: str = Field(default="MusicReleaseFormatType", alias='@type', constant=True) + type_: str = Field(default="MusicReleaseFormatType", alias='@type', const=True) diff --git a/pydantic_schemaorg/MusicStore.py b/pydantic_schemaorg/MusicStore.py index 9392ab27..8a16fc1f 100644 --- a/pydantic_schemaorg/MusicStore.py +++ b/pydantic_schemaorg/MusicStore.py @@ -11,5 +11,5 @@ class MusicStore(Store): See: https://schema.org/MusicStore Model depth: 5 """ - type_: str = Field(default="MusicStore", alias='@type', constant=True) + type_: str = Field(default="MusicStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/MusicVenue.py b/pydantic_schemaorg/MusicVenue.py index 25579693..fb1799f2 100644 --- a/pydantic_schemaorg/MusicVenue.py +++ b/pydantic_schemaorg/MusicVenue.py @@ -11,5 +11,5 @@ class MusicVenue(CivicStructure): See: https://schema.org/MusicVenue Model depth: 4 """ - type_: str = Field(default="MusicVenue", alias='@type', constant=True) + type_: str = Field(default="MusicVenue", alias='@type', const=True) diff --git a/pydantic_schemaorg/MusicVideoObject.py b/pydantic_schemaorg/MusicVideoObject.py index c2fd41de..4b719b62 100644 --- a/pydantic_schemaorg/MusicVideoObject.py +++ b/pydantic_schemaorg/MusicVideoObject.py @@ -11,5 +11,5 @@ class MusicVideoObject(MediaObject): See: https://schema.org/MusicVideoObject Model depth: 4 """ - type_: str = Field(default="MusicVideoObject", alias='@type', constant=True) + type_: str = Field(default="MusicVideoObject", alias='@type', const=True) diff --git a/pydantic_schemaorg/NGO.py b/pydantic_schemaorg/NGO.py index 64e7846a..38f7668f 100644 --- a/pydantic_schemaorg/NGO.py +++ b/pydantic_schemaorg/NGO.py @@ -11,5 +11,5 @@ class NGO(Organization): See: https://schema.org/NGO Model depth: 3 """ - type_: str = Field(default="NGO", alias='@type', constant=True) + type_: str = Field(default="NGO", alias='@type', const=True) diff --git a/pydantic_schemaorg/NLNonprofitType.py b/pydantic_schemaorg/NLNonprofitType.py index 3aee94cc..8fea20f9 100644 --- a/pydantic_schemaorg/NLNonprofitType.py +++ b/pydantic_schemaorg/NLNonprofitType.py @@ -11,5 +11,5 @@ class NLNonprofitType(NonprofitType): See: https://schema.org/NLNonprofitType Model depth: 5 """ - type_: str = Field(default="NLNonprofitType", alias='@type', constant=True) + type_: str = Field(default="NLNonprofitType", alias='@type', const=True) diff --git a/pydantic_schemaorg/NailSalon.py b/pydantic_schemaorg/NailSalon.py index 65d77f18..94dea1d8 100644 --- a/pydantic_schemaorg/NailSalon.py +++ b/pydantic_schemaorg/NailSalon.py @@ -11,5 +11,5 @@ class NailSalon(HealthAndBeautyBusiness): See: https://schema.org/NailSalon Model depth: 5 """ - type_: str = Field(default="NailSalon", alias='@type', constant=True) + type_: str = Field(default="NailSalon", alias='@type', const=True) diff --git a/pydantic_schemaorg/Neck.py b/pydantic_schemaorg/Neck.py index bee18825..27745880 100644 --- a/pydantic_schemaorg/Neck.py +++ b/pydantic_schemaorg/Neck.py @@ -11,5 +11,5 @@ class Neck(PhysicalExam): See: https://schema.org/Neck Model depth: 5 """ - type_: str = Field(default="Neck", alias='@type', constant=True) + type_: str = Field(default="Neck", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nerve.py b/pydantic_schemaorg/Nerve.py index ddb1be0c..972cef42 100644 --- a/pydantic_schemaorg/Nerve.py +++ b/pydantic_schemaorg/Nerve.py @@ -15,7 +15,7 @@ class Nerve(AnatomicalStructure): See: https://schema.org/Nerve Model depth: 4 """ - type_: str = Field(default="Nerve", alias='@type', constant=True) + type_: str = Field(default="Nerve", alias='@type', const=True) branch: Optional[Union[List[Union['AnatomicalStructure', str]], 'AnatomicalStructure', str]] = Field( default=None, description="The branches that delineate from the nerve bundle. Not to be confused with [[branchOf]].", @@ -24,7 +24,7 @@ class Nerve(AnatomicalStructure): default=None, description="The neurological pathway extension that involves muscle control.", ) - sensoryUnit: Optional[Union[List[Union['AnatomicalStructure', 'SuperficialAnatomy', str]], 'AnatomicalStructure', 'SuperficialAnatomy', str]] = Field( + sensoryUnit: Optional[Union[List[Union['SuperficialAnatomy', 'AnatomicalStructure', str]], 'SuperficialAnatomy', 'AnatomicalStructure', str]] = Field( default=None, description="The neurological pathway extension that inputs and sends information to the brain or" "spinal cord.", diff --git a/pydantic_schemaorg/Neuro.py b/pydantic_schemaorg/Neuro.py index 9425d4fe..e9b69234 100644 --- a/pydantic_schemaorg/Neuro.py +++ b/pydantic_schemaorg/Neuro.py @@ -11,5 +11,5 @@ class Neuro(PhysicalExam): See: https://schema.org/Neuro Model depth: 5 """ - type_: str = Field(default="Neuro", alias='@type', constant=True) + type_: str = Field(default="Neuro", alias='@type', const=True) diff --git a/pydantic_schemaorg/Neurologic.py b/pydantic_schemaorg/Neurologic.py index 154aa007..8d8d2215 100644 --- a/pydantic_schemaorg/Neurologic.py +++ b/pydantic_schemaorg/Neurologic.py @@ -12,5 +12,5 @@ class Neurologic(MedicalSpecialty): See: https://schema.org/Neurologic Model depth: 6 """ - type_: str = Field(default="Neurologic", alias='@type', constant=True) + type_: str = Field(default="Neurologic", alias='@type', const=True) diff --git a/pydantic_schemaorg/NewCondition.py b/pydantic_schemaorg/NewCondition.py index 52c96c35..274f1251 100644 --- a/pydantic_schemaorg/NewCondition.py +++ b/pydantic_schemaorg/NewCondition.py @@ -11,5 +11,5 @@ class NewCondition(OfferItemCondition): See: https://schema.org/NewCondition Model depth: 5 """ - type_: str = Field(default="NewCondition", alias='@type', constant=True) + type_: str = Field(default="NewCondition", alias='@type', const=True) diff --git a/pydantic_schemaorg/NewsArticle.py b/pydantic_schemaorg/NewsArticle.py index 7137e530..244fb61a 100644 --- a/pydantic_schemaorg/NewsArticle.py +++ b/pydantic_schemaorg/NewsArticle.py @@ -16,7 +16,7 @@ class NewsArticle(Article): See: https://schema.org/NewsArticle Model depth: 4 """ - type_: str = Field(default="NewsArticle", alias='@type', constant=True) + type_: str = Field(default="NewsArticle", alias='@type', const=True) dateline: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A [dateline](https://en.wikipedia.org/wiki/Dateline) is a brief piece of text included" diff --git a/pydantic_schemaorg/NewsMediaOrganization.py b/pydantic_schemaorg/NewsMediaOrganization.py index a542780d..48064163 100644 --- a/pydantic_schemaorg/NewsMediaOrganization.py +++ b/pydantic_schemaorg/NewsMediaOrganization.py @@ -15,7 +15,7 @@ class NewsMediaOrganization(Organization): See: https://schema.org/NewsMediaOrganization Model depth: 3 """ - type_: str = Field(default="NewsMediaOrganization", alias='@type', constant=True) + type_: str = Field(default="NewsMediaOrganization", alias='@type', const=True) actionableFeedbackPolicy: Optional[Union[List[Union[AnyUrl, 'URL', 'CreativeWork', str]], AnyUrl, 'URL', 'CreativeWork', str]] = Field( default=None, description="For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement" @@ -47,7 +47,7 @@ class NewsMediaOrganization(Organization): description="For a [[NewsMediaOrganization]], a statement on coverage priorities, including any" "public agenda or stance on issues.", ) - ownershipFundingInfo: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'AboutPage', 'CreativeWork']], AnyUrl, 'URL', str, 'Text', 'AboutPage', 'CreativeWork']] = Field( + ownershipFundingInfo: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'CreativeWork', 'AboutPage']], AnyUrl, 'URL', str, 'Text', 'CreativeWork', 'AboutPage']] = Field( default=None, description="For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]])," "a description of organizational ownership structure; funding and grants. In a news/media" diff --git a/pydantic_schemaorg/Newspaper.py b/pydantic_schemaorg/Newspaper.py index 84a5387e..ba40bc73 100644 --- a/pydantic_schemaorg/Newspaper.py +++ b/pydantic_schemaorg/Newspaper.py @@ -13,5 +13,5 @@ class Newspaper(Periodical): See: https://schema.org/Newspaper Model depth: 5 """ - type_: str = Field(default="Newspaper", alias='@type', constant=True) + type_: str = Field(default="Newspaper", alias='@type', const=True) diff --git a/pydantic_schemaorg/NightClub.py b/pydantic_schemaorg/NightClub.py index ef43a566..44589a1a 100644 --- a/pydantic_schemaorg/NightClub.py +++ b/pydantic_schemaorg/NightClub.py @@ -11,5 +11,5 @@ class NightClub(EntertainmentBusiness): See: https://schema.org/NightClub Model depth: 5 """ - type_: str = Field(default="NightClub", alias='@type', constant=True) + type_: str = Field(default="NightClub", alias='@type', const=True) diff --git a/pydantic_schemaorg/NoninvasiveProcedure.py b/pydantic_schemaorg/NoninvasiveProcedure.py index 3f99e9bf..1cc43ab6 100644 --- a/pydantic_schemaorg/NoninvasiveProcedure.py +++ b/pydantic_schemaorg/NoninvasiveProcedure.py @@ -11,5 +11,5 @@ class NoninvasiveProcedure(MedicalProcedureType): See: https://schema.org/NoninvasiveProcedure Model depth: 6 """ - type_: str = Field(default="NoninvasiveProcedure", alias='@type', constant=True) + type_: str = Field(default="NoninvasiveProcedure", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501a.py b/pydantic_schemaorg/Nonprofit501a.py index 4ac20dbf..0edb80c4 100644 --- a/pydantic_schemaorg/Nonprofit501a.py +++ b/pydantic_schemaorg/Nonprofit501a.py @@ -11,5 +11,5 @@ class Nonprofit501a(USNonprofitType): See: https://schema.org/Nonprofit501a Model depth: 6 """ - type_: str = Field(default="Nonprofit501a", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501a", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c1.py b/pydantic_schemaorg/Nonprofit501c1.py index d03f3f11..609ee70f 100644 --- a/pydantic_schemaorg/Nonprofit501c1.py +++ b/pydantic_schemaorg/Nonprofit501c1.py @@ -12,5 +12,5 @@ class Nonprofit501c1(USNonprofitType): See: https://schema.org/Nonprofit501c1 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c1", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c1", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c10.py b/pydantic_schemaorg/Nonprofit501c10.py index f813a8c1..71552b7b 100644 --- a/pydantic_schemaorg/Nonprofit501c10.py +++ b/pydantic_schemaorg/Nonprofit501c10.py @@ -11,5 +11,5 @@ class Nonprofit501c10(USNonprofitType): See: https://schema.org/Nonprofit501c10 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c10", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c10", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c11.py b/pydantic_schemaorg/Nonprofit501c11.py index 50e45741..cb99073e 100644 --- a/pydantic_schemaorg/Nonprofit501c11.py +++ b/pydantic_schemaorg/Nonprofit501c11.py @@ -11,5 +11,5 @@ class Nonprofit501c11(USNonprofitType): See: https://schema.org/Nonprofit501c11 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c11", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c11", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c12.py b/pydantic_schemaorg/Nonprofit501c12.py index b4020a72..0ce5f988 100644 --- a/pydantic_schemaorg/Nonprofit501c12.py +++ b/pydantic_schemaorg/Nonprofit501c12.py @@ -12,5 +12,5 @@ class Nonprofit501c12(USNonprofitType): See: https://schema.org/Nonprofit501c12 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c12", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c12", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c13.py b/pydantic_schemaorg/Nonprofit501c13.py index 8435ec7e..f3d7f25e 100644 --- a/pydantic_schemaorg/Nonprofit501c13.py +++ b/pydantic_schemaorg/Nonprofit501c13.py @@ -11,5 +11,5 @@ class Nonprofit501c13(USNonprofitType): See: https://schema.org/Nonprofit501c13 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c13", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c13", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c14.py b/pydantic_schemaorg/Nonprofit501c14.py index 652a0337..b9f86d2b 100644 --- a/pydantic_schemaorg/Nonprofit501c14.py +++ b/pydantic_schemaorg/Nonprofit501c14.py @@ -12,5 +12,5 @@ class Nonprofit501c14(USNonprofitType): See: https://schema.org/Nonprofit501c14 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c14", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c14", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c15.py b/pydantic_schemaorg/Nonprofit501c15.py index 19a60f69..6d977832 100644 --- a/pydantic_schemaorg/Nonprofit501c15.py +++ b/pydantic_schemaorg/Nonprofit501c15.py @@ -11,5 +11,5 @@ class Nonprofit501c15(USNonprofitType): See: https://schema.org/Nonprofit501c15 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c15", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c15", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c16.py b/pydantic_schemaorg/Nonprofit501c16.py index 7850c50c..1112eda5 100644 --- a/pydantic_schemaorg/Nonprofit501c16.py +++ b/pydantic_schemaorg/Nonprofit501c16.py @@ -12,5 +12,5 @@ class Nonprofit501c16(USNonprofitType): See: https://schema.org/Nonprofit501c16 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c16", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c16", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c17.py b/pydantic_schemaorg/Nonprofit501c17.py index a4c2f7a1..48e9670e 100644 --- a/pydantic_schemaorg/Nonprofit501c17.py +++ b/pydantic_schemaorg/Nonprofit501c17.py @@ -12,5 +12,5 @@ class Nonprofit501c17(USNonprofitType): See: https://schema.org/Nonprofit501c17 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c17", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c17", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c18.py b/pydantic_schemaorg/Nonprofit501c18.py index 53a38485..378b270d 100644 --- a/pydantic_schemaorg/Nonprofit501c18.py +++ b/pydantic_schemaorg/Nonprofit501c18.py @@ -12,5 +12,5 @@ class Nonprofit501c18(USNonprofitType): See: https://schema.org/Nonprofit501c18 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c18", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c18", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c19.py b/pydantic_schemaorg/Nonprofit501c19.py index e3b12ec5..dd82200d 100644 --- a/pydantic_schemaorg/Nonprofit501c19.py +++ b/pydantic_schemaorg/Nonprofit501c19.py @@ -12,5 +12,5 @@ class Nonprofit501c19(USNonprofitType): See: https://schema.org/Nonprofit501c19 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c19", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c19", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c2.py b/pydantic_schemaorg/Nonprofit501c2.py index 31406f79..9ac3a14a 100644 --- a/pydantic_schemaorg/Nonprofit501c2.py +++ b/pydantic_schemaorg/Nonprofit501c2.py @@ -12,5 +12,5 @@ class Nonprofit501c2(USNonprofitType): See: https://schema.org/Nonprofit501c2 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c2", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c2", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c20.py b/pydantic_schemaorg/Nonprofit501c20.py index ae69d0ea..d586249b 100644 --- a/pydantic_schemaorg/Nonprofit501c20.py +++ b/pydantic_schemaorg/Nonprofit501c20.py @@ -11,5 +11,5 @@ class Nonprofit501c20(USNonprofitType): See: https://schema.org/Nonprofit501c20 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c20", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c20", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c21.py b/pydantic_schemaorg/Nonprofit501c21.py index f9d5b2a2..b883bdb3 100644 --- a/pydantic_schemaorg/Nonprofit501c21.py +++ b/pydantic_schemaorg/Nonprofit501c21.py @@ -11,5 +11,5 @@ class Nonprofit501c21(USNonprofitType): See: https://schema.org/Nonprofit501c21 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c21", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c21", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c22.py b/pydantic_schemaorg/Nonprofit501c22.py index 371f5e03..77054eca 100644 --- a/pydantic_schemaorg/Nonprofit501c22.py +++ b/pydantic_schemaorg/Nonprofit501c22.py @@ -11,5 +11,5 @@ class Nonprofit501c22(USNonprofitType): See: https://schema.org/Nonprofit501c22 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c22", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c22", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c23.py b/pydantic_schemaorg/Nonprofit501c23.py index 739c313b..df42bbfa 100644 --- a/pydantic_schemaorg/Nonprofit501c23.py +++ b/pydantic_schemaorg/Nonprofit501c23.py @@ -11,5 +11,5 @@ class Nonprofit501c23(USNonprofitType): See: https://schema.org/Nonprofit501c23 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c23", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c23", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c24.py b/pydantic_schemaorg/Nonprofit501c24.py index 686c8eb6..80dfe110 100644 --- a/pydantic_schemaorg/Nonprofit501c24.py +++ b/pydantic_schemaorg/Nonprofit501c24.py @@ -11,5 +11,5 @@ class Nonprofit501c24(USNonprofitType): See: https://schema.org/Nonprofit501c24 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c24", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c24", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c25.py b/pydantic_schemaorg/Nonprofit501c25.py index a6c09036..a74c8aeb 100644 --- a/pydantic_schemaorg/Nonprofit501c25.py +++ b/pydantic_schemaorg/Nonprofit501c25.py @@ -12,5 +12,5 @@ class Nonprofit501c25(USNonprofitType): See: https://schema.org/Nonprofit501c25 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c25", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c25", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c26.py b/pydantic_schemaorg/Nonprofit501c26.py index 8a52683c..a8fad28a 100644 --- a/pydantic_schemaorg/Nonprofit501c26.py +++ b/pydantic_schemaorg/Nonprofit501c26.py @@ -12,5 +12,5 @@ class Nonprofit501c26(USNonprofitType): See: https://schema.org/Nonprofit501c26 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c26", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c26", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c27.py b/pydantic_schemaorg/Nonprofit501c27.py index 01355568..84527f31 100644 --- a/pydantic_schemaorg/Nonprofit501c27.py +++ b/pydantic_schemaorg/Nonprofit501c27.py @@ -12,5 +12,5 @@ class Nonprofit501c27(USNonprofitType): See: https://schema.org/Nonprofit501c27 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c27", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c27", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c28.py b/pydantic_schemaorg/Nonprofit501c28.py index 88cb5cfa..be115003 100644 --- a/pydantic_schemaorg/Nonprofit501c28.py +++ b/pydantic_schemaorg/Nonprofit501c28.py @@ -12,5 +12,5 @@ class Nonprofit501c28(USNonprofitType): See: https://schema.org/Nonprofit501c28 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c28", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c28", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c3.py b/pydantic_schemaorg/Nonprofit501c3.py index f2aad99c..12c303d7 100644 --- a/pydantic_schemaorg/Nonprofit501c3.py +++ b/pydantic_schemaorg/Nonprofit501c3.py @@ -13,5 +13,5 @@ class Nonprofit501c3(USNonprofitType): See: https://schema.org/Nonprofit501c3 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c3", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c3", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c4.py b/pydantic_schemaorg/Nonprofit501c4.py index 74947cf9..290d7fa1 100644 --- a/pydantic_schemaorg/Nonprofit501c4.py +++ b/pydantic_schemaorg/Nonprofit501c4.py @@ -12,5 +12,5 @@ class Nonprofit501c4(USNonprofitType): See: https://schema.org/Nonprofit501c4 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c4", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c4", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c5.py b/pydantic_schemaorg/Nonprofit501c5.py index 1341a36c..8c734b35 100644 --- a/pydantic_schemaorg/Nonprofit501c5.py +++ b/pydantic_schemaorg/Nonprofit501c5.py @@ -12,5 +12,5 @@ class Nonprofit501c5(USNonprofitType): See: https://schema.org/Nonprofit501c5 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c5", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c5", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c6.py b/pydantic_schemaorg/Nonprofit501c6.py index bcec29be..7a99fe4e 100644 --- a/pydantic_schemaorg/Nonprofit501c6.py +++ b/pydantic_schemaorg/Nonprofit501c6.py @@ -12,5 +12,5 @@ class Nonprofit501c6(USNonprofitType): See: https://schema.org/Nonprofit501c6 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c6", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c6", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c7.py b/pydantic_schemaorg/Nonprofit501c7.py index f1add12e..60643423 100644 --- a/pydantic_schemaorg/Nonprofit501c7.py +++ b/pydantic_schemaorg/Nonprofit501c7.py @@ -11,5 +11,5 @@ class Nonprofit501c7(USNonprofitType): See: https://schema.org/Nonprofit501c7 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c7", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c7", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c8.py b/pydantic_schemaorg/Nonprofit501c8.py index 7da45a69..6393df7e 100644 --- a/pydantic_schemaorg/Nonprofit501c8.py +++ b/pydantic_schemaorg/Nonprofit501c8.py @@ -12,5 +12,5 @@ class Nonprofit501c8(USNonprofitType): See: https://schema.org/Nonprofit501c8 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c8", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c8", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501c9.py b/pydantic_schemaorg/Nonprofit501c9.py index d360db08..a42cc344 100644 --- a/pydantic_schemaorg/Nonprofit501c9.py +++ b/pydantic_schemaorg/Nonprofit501c9.py @@ -11,5 +11,5 @@ class Nonprofit501c9(USNonprofitType): See: https://schema.org/Nonprofit501c9 Model depth: 6 """ - type_: str = Field(default="Nonprofit501c9", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501c9", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501d.py b/pydantic_schemaorg/Nonprofit501d.py index 4d4a14fe..e684733a 100644 --- a/pydantic_schemaorg/Nonprofit501d.py +++ b/pydantic_schemaorg/Nonprofit501d.py @@ -11,5 +11,5 @@ class Nonprofit501d(USNonprofitType): See: https://schema.org/Nonprofit501d Model depth: 6 """ - type_: str = Field(default="Nonprofit501d", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501d", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501e.py b/pydantic_schemaorg/Nonprofit501e.py index 8d663948..f39aa8eb 100644 --- a/pydantic_schemaorg/Nonprofit501e.py +++ b/pydantic_schemaorg/Nonprofit501e.py @@ -11,5 +11,5 @@ class Nonprofit501e(USNonprofitType): See: https://schema.org/Nonprofit501e Model depth: 6 """ - type_: str = Field(default="Nonprofit501e", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501e", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501f.py b/pydantic_schemaorg/Nonprofit501f.py index dbefb5b0..2e5944ba 100644 --- a/pydantic_schemaorg/Nonprofit501f.py +++ b/pydantic_schemaorg/Nonprofit501f.py @@ -11,5 +11,5 @@ class Nonprofit501f(USNonprofitType): See: https://schema.org/Nonprofit501f Model depth: 6 """ - type_: str = Field(default="Nonprofit501f", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501f", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501k.py b/pydantic_schemaorg/Nonprofit501k.py index 9b1a462f..ad21bc59 100644 --- a/pydantic_schemaorg/Nonprofit501k.py +++ b/pydantic_schemaorg/Nonprofit501k.py @@ -11,5 +11,5 @@ class Nonprofit501k(USNonprofitType): See: https://schema.org/Nonprofit501k Model depth: 6 """ - type_: str = Field(default="Nonprofit501k", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501k", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501n.py b/pydantic_schemaorg/Nonprofit501n.py index 2230bd03..a57f10d0 100644 --- a/pydantic_schemaorg/Nonprofit501n.py +++ b/pydantic_schemaorg/Nonprofit501n.py @@ -11,5 +11,5 @@ class Nonprofit501n(USNonprofitType): See: https://schema.org/Nonprofit501n Model depth: 6 """ - type_: str = Field(default="Nonprofit501n", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501n", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit501q.py b/pydantic_schemaorg/Nonprofit501q.py index b9c63362..0a7eae34 100644 --- a/pydantic_schemaorg/Nonprofit501q.py +++ b/pydantic_schemaorg/Nonprofit501q.py @@ -11,5 +11,5 @@ class Nonprofit501q(USNonprofitType): See: https://schema.org/Nonprofit501q Model depth: 6 """ - type_: str = Field(default="Nonprofit501q", alias='@type', constant=True) + type_: str = Field(default="Nonprofit501q", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nonprofit527.py b/pydantic_schemaorg/Nonprofit527.py index a245bf21..478c1c67 100644 --- a/pydantic_schemaorg/Nonprofit527.py +++ b/pydantic_schemaorg/Nonprofit527.py @@ -11,5 +11,5 @@ class Nonprofit527(USNonprofitType): See: https://schema.org/Nonprofit527 Model depth: 6 """ - type_: str = Field(default="Nonprofit527", alias='@type', constant=True) + type_: str = Field(default="Nonprofit527", alias='@type', const=True) diff --git a/pydantic_schemaorg/NonprofitANBI.py b/pydantic_schemaorg/NonprofitANBI.py index 3750122e..adce0800 100644 --- a/pydantic_schemaorg/NonprofitANBI.py +++ b/pydantic_schemaorg/NonprofitANBI.py @@ -11,5 +11,5 @@ class NonprofitANBI(NLNonprofitType): See: https://schema.org/NonprofitANBI Model depth: 6 """ - type_: str = Field(default="NonprofitANBI", alias='@type', constant=True) + type_: str = Field(default="NonprofitANBI", alias='@type', const=True) diff --git a/pydantic_schemaorg/NonprofitSBBI.py b/pydantic_schemaorg/NonprofitSBBI.py index be5bd489..5253c466 100644 --- a/pydantic_schemaorg/NonprofitSBBI.py +++ b/pydantic_schemaorg/NonprofitSBBI.py @@ -12,5 +12,5 @@ class NonprofitSBBI(NLNonprofitType): See: https://schema.org/NonprofitSBBI Model depth: 6 """ - type_: str = Field(default="NonprofitSBBI", alias='@type', constant=True) + type_: str = Field(default="NonprofitSBBI", alias='@type', const=True) diff --git a/pydantic_schemaorg/NonprofitType.py b/pydantic_schemaorg/NonprofitType.py index 80df4d90..dd514c13 100644 --- a/pydantic_schemaorg/NonprofitType.py +++ b/pydantic_schemaorg/NonprofitType.py @@ -12,5 +12,5 @@ class NonprofitType(Enumeration): See: https://schema.org/NonprofitType Model depth: 4 """ - type_: str = Field(default="NonprofitType", alias='@type', constant=True) + type_: str = Field(default="NonprofitType", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nose.py b/pydantic_schemaorg/Nose.py index d7d18920..dd5e944e 100644 --- a/pydantic_schemaorg/Nose.py +++ b/pydantic_schemaorg/Nose.py @@ -11,5 +11,5 @@ class Nose(PhysicalExam): See: https://schema.org/Nose Model depth: 5 """ - type_: str = Field(default="Nose", alias='@type', constant=True) + type_: str = Field(default="Nose", alias='@type', const=True) diff --git a/pydantic_schemaorg/NotInForce.py b/pydantic_schemaorg/NotInForce.py index 23be6287..c5c6930b 100644 --- a/pydantic_schemaorg/NotInForce.py +++ b/pydantic_schemaorg/NotInForce.py @@ -11,5 +11,5 @@ class NotInForce(LegalForceStatus): See: https://schema.org/NotInForce Model depth: 6 """ - type_: str = Field(default="NotInForce", alias='@type', constant=True) + type_: str = Field(default="NotInForce", alias='@type', const=True) diff --git a/pydantic_schemaorg/NotYetRecruiting.py b/pydantic_schemaorg/NotYetRecruiting.py index d3db62d7..3e36923c 100644 --- a/pydantic_schemaorg/NotYetRecruiting.py +++ b/pydantic_schemaorg/NotYetRecruiting.py @@ -11,5 +11,5 @@ class NotYetRecruiting(MedicalStudyStatus): See: https://schema.org/NotYetRecruiting Model depth: 6 """ - type_: str = Field(default="NotYetRecruiting", alias='@type', constant=True) + type_: str = Field(default="NotYetRecruiting", alias='@type', const=True) diff --git a/pydantic_schemaorg/Notary.py b/pydantic_schemaorg/Notary.py index 33a18530..9698613b 100644 --- a/pydantic_schemaorg/Notary.py +++ b/pydantic_schemaorg/Notary.py @@ -11,5 +11,5 @@ class Notary(LegalService): See: https://schema.org/Notary Model depth: 5 """ - type_: str = Field(default="Notary", alias='@type', constant=True) + type_: str = Field(default="Notary", alias='@type', const=True) diff --git a/pydantic_schemaorg/NoteDigitalDocument.py b/pydantic_schemaorg/NoteDigitalDocument.py index 873aed40..1a437dc6 100644 --- a/pydantic_schemaorg/NoteDigitalDocument.py +++ b/pydantic_schemaorg/NoteDigitalDocument.py @@ -11,5 +11,5 @@ class NoteDigitalDocument(DigitalDocument): See: https://schema.org/NoteDigitalDocument Model depth: 4 """ - type_: str = Field(default="NoteDigitalDocument", alias='@type', constant=True) + type_: str = Field(default="NoteDigitalDocument", alias='@type', const=True) diff --git a/pydantic_schemaorg/Number.py b/pydantic_schemaorg/Number.py index 26d177cf..c50e047e 100644 --- a/pydantic_schemaorg/Number.py +++ b/pydantic_schemaorg/Number.py @@ -14,5 +14,5 @@ class Number(DataType): See: https://schema.org/Number Model depth: 5 """ - type_: str = Field(default="Number", alias='@type', constant=True) + type_: str = Field(default="Number", alias='@type', const=True) diff --git a/pydantic_schemaorg/Nursing.py b/pydantic_schemaorg/Nursing.py index dc678dcf..2cb32324 100644 --- a/pydantic_schemaorg/Nursing.py +++ b/pydantic_schemaorg/Nursing.py @@ -13,5 +13,5 @@ class Nursing(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Nursing Model depth: 5 """ - type_: str = Field(default="Nursing", alias='@type', constant=True) + type_: str = Field(default="Nursing", alias='@type', const=True) diff --git a/pydantic_schemaorg/NutritionInformation.py b/pydantic_schemaorg/NutritionInformation.py index c24a41c6..764e5fea 100644 --- a/pydantic_schemaorg/NutritionInformation.py +++ b/pydantic_schemaorg/NutritionInformation.py @@ -14,7 +14,7 @@ class NutritionInformation(StructuredValue): See: https://schema.org/NutritionInformation Model depth: 4 """ - type_: str = Field(default="NutritionInformation", alias='@type', constant=True) + type_: str = Field(default="NutritionInformation", alias='@type', const=True) calories: Optional[Union[List[Union['Energy', str]], 'Energy', str]] = Field( default=None, description="The number of calories.", diff --git a/pydantic_schemaorg/OTC.py b/pydantic_schemaorg/OTC.py index 3bed4c21..131e16e8 100644 --- a/pydantic_schemaorg/OTC.py +++ b/pydantic_schemaorg/OTC.py @@ -12,5 +12,5 @@ class OTC(DrugPrescriptionStatus): See: https://schema.org/OTC Model depth: 6 """ - type_: str = Field(default="OTC", alias='@type', constant=True) + type_: str = Field(default="OTC", alias='@type', const=True) diff --git a/pydantic_schemaorg/Observation.py b/pydantic_schemaorg/Observation.py index 1b21543b..7eb72113 100644 --- a/pydantic_schemaorg/Observation.py +++ b/pydantic_schemaorg/Observation.py @@ -22,7 +22,7 @@ class Observation(Intangible): See: https://schema.org/Observation Model depth: 3 """ - type_: str = Field(default="Observation", alias='@type', constant=True) + type_: str = Field(default="Observation", alias='@type', const=True) measuredProperty: Optional[Union[List[Union['Property', str]], 'Property', str]] = Field( default=None, description="The measuredProperty of an [[Observation]], either a schema.org property, a property" diff --git a/pydantic_schemaorg/Observational.py b/pydantic_schemaorg/Observational.py index 75597bfb..288c60fa 100644 --- a/pydantic_schemaorg/Observational.py +++ b/pydantic_schemaorg/Observational.py @@ -11,5 +11,5 @@ class Observational(MedicalObservationalStudyDesign): See: https://schema.org/Observational Model depth: 6 """ - type_: str = Field(default="Observational", alias='@type', constant=True) + type_: str = Field(default="Observational", alias='@type', const=True) diff --git a/pydantic_schemaorg/Obstetric.py b/pydantic_schemaorg/Obstetric.py index 18dfbedd..f447d7fa 100644 --- a/pydantic_schemaorg/Obstetric.py +++ b/pydantic_schemaorg/Obstetric.py @@ -13,5 +13,5 @@ class Obstetric(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Obstetric Model depth: 5 """ - type_: str = Field(default="Obstetric", alias='@type', constant=True) + type_: str = Field(default="Obstetric", alias='@type', const=True) diff --git a/pydantic_schemaorg/Occupation.py b/pydantic_schemaorg/Occupation.py index 91066523..f7d958a4 100644 --- a/pydantic_schemaorg/Occupation.py +++ b/pydantic_schemaorg/Occupation.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -15,7 +15,7 @@ class Occupation(Intangible): See: https://schema.org/Occupation Model depth: 3 """ - type_: str = Field(default="Occupation", alias='@type', constant=True) + type_: str = Field(default="Occupation", alias='@type', const=True) experienceRequirements: Optional[Union[List[Union[str, 'Text', 'OccupationalExperienceRequirements']], str, 'Text', 'OccupationalExperienceRequirements']] = Field( default=None, description="Description of skills and experience needed for the position or Occupation.", @@ -25,7 +25,7 @@ class Occupation(Intangible): description="A statement of knowledge, skill, ability, task or any other assertion expressing a competency" "that is desired or required to fulfill this role or to work in this occupation.", ) - estimatedSalary: Optional[Union[List[Union[int, float, 'Number', 'MonetaryAmountDistribution', 'MonetaryAmount', str]], int, float, 'Number', 'MonetaryAmountDistribution', 'MonetaryAmount', str]] = Field( + estimatedSalary: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'MonetaryAmountDistribution', 'MonetaryAmount', str]], StrictInt, StrictFloat, 'Number', 'MonetaryAmountDistribution', 'MonetaryAmount', str]] = Field( default=None, description="An estimated salary for a job posting or occupation, based on a variety of variables including," "but not limited to industry, job title, and location. Estimated salaries are often computed" diff --git a/pydantic_schemaorg/OccupationalActivity.py b/pydantic_schemaorg/OccupationalActivity.py index d14534d9..f8ae47c1 100644 --- a/pydantic_schemaorg/OccupationalActivity.py +++ b/pydantic_schemaorg/OccupationalActivity.py @@ -13,5 +13,5 @@ class OccupationalActivity(PhysicalActivityCategory): See: https://schema.org/OccupationalActivity Model depth: 5 """ - type_: str = Field(default="OccupationalActivity", alias='@type', constant=True) + type_: str = Field(default="OccupationalActivity", alias='@type', const=True) diff --git a/pydantic_schemaorg/OccupationalExperienceRequirements.py b/pydantic_schemaorg/OccupationalExperienceRequirements.py index 8a20936b..0038a3a3 100644 --- a/pydantic_schemaorg/OccupationalExperienceRequirements.py +++ b/pydantic_schemaorg/OccupationalExperienceRequirements.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -15,8 +15,8 @@ class OccupationalExperienceRequirements(Intangible): See: https://schema.org/OccupationalExperienceRequirements Model depth: 3 """ - type_: str = Field(default="OccupationalExperienceRequirements", alias='@type', constant=True) - monthsOfExperience: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + type_: str = Field(default="OccupationalExperienceRequirements", alias='@type', const=True) + monthsOfExperience: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Indicates the minimal number of months of experience required for a position.", ) diff --git a/pydantic_schemaorg/OccupationalTherapy.py b/pydantic_schemaorg/OccupationalTherapy.py index c9eaacff..55c9b453 100644 --- a/pydantic_schemaorg/OccupationalTherapy.py +++ b/pydantic_schemaorg/OccupationalTherapy.py @@ -12,5 +12,5 @@ class OccupationalTherapy(MedicalTherapy): See: https://schema.org/OccupationalTherapy Model depth: 6 """ - type_: str = Field(default="OccupationalTherapy", alias='@type', constant=True) + type_: str = Field(default="OccupationalTherapy", alias='@type', const=True) diff --git a/pydantic_schemaorg/OceanBodyOfWater.py b/pydantic_schemaorg/OceanBodyOfWater.py index c93fc775..1be9a9df 100644 --- a/pydantic_schemaorg/OceanBodyOfWater.py +++ b/pydantic_schemaorg/OceanBodyOfWater.py @@ -11,5 +11,5 @@ class OceanBodyOfWater(BodyOfWater): See: https://schema.org/OceanBodyOfWater Model depth: 5 """ - type_: str = Field(default="OceanBodyOfWater", alias='@type', constant=True) + type_: str = Field(default="OceanBodyOfWater", alias='@type', const=True) diff --git a/pydantic_schemaorg/Offer.py b/pydantic_schemaorg/Offer.py index 55604f5c..01c9087e 100644 --- a/pydantic_schemaorg/Offer.py +++ b/pydantic_schemaorg/Offer.py @@ -3,8 +3,7 @@ from typing import List, Optional, Union from datetime import date, datetime, time -from pydantic import AnyUrl -from decimal import Decimal +from pydantic import AnyUrl, StrictInt, StrictFloat from pydantic import Field @@ -25,7 +24,7 @@ class Offer(Intangible): See: https://schema.org/Offer Model depth: 3 """ - type_: str = Field(default="Offer", alias='@type', constant=True) + type_: str = Field(default="Offer", alias='@type', const=True) hasMeasurement: Optional[Union[List[Union['QuantitativeValue', str]], 'QuantitativeValue', str]] = Field( default=None, description="A product measurement, for example the inseam of pants, the wheel size of a bicycle, or" @@ -80,7 +79,7 @@ class Offer(Intangible): "known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin)" "for more details.", ) - leaseLength: Optional[Union[List[Union['QuantitativeValue', 'Duration', str]], 'QuantitativeValue', 'Duration', str]] = Field( + leaseLength: Optional[Union[List[Union['Duration', 'QuantitativeValue', str]], 'Duration', 'QuantitativeValue', str]] = Field( default=None, description="Length of the lease for some [[Accommodation]], either particular to some [[Offer]]" "or in some cases intrinsic to the property.", @@ -105,7 +104,7 @@ class Offer(Intangible): default=None, description="The duration for which the given offer is valid.", ) - category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']], AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']] = Field( + category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']], AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']] = Field( default=None, description="A category for the item. Greater signs or slashes can be used to informally indicate a" "category hierarchy.", @@ -126,7 +125,7 @@ class Offer(Intangible): "for cryptocurrencies e.g. \"BTC\"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)" "(LETS) and other currency types e.g. \"Ithaca HOUR\".", ) - price: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + price: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The offer price of a product, or of a price component when attached to PriceSpecification" "and its subtypes. Usage guidelines: * Use the [[priceCurrency]] property (with standard" @@ -149,7 +148,7 @@ class Offer(Intangible): "the geo-political region(s) for which the offer or delivery charge specification is" "valid. See also [[ineligibleRegion]].", ) - seller: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + seller: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="An entity which offers (sells / leases / lends / loans) the services / goods. A seller may" "also be a provider.", @@ -178,7 +177,7 @@ class Offer(Intangible): default=None, description="The place(s) from which the offer can be obtained (e.g. store locations).", ) - offeredBy: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + offeredBy: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A pointer to the organization or person making the offer.", ) @@ -186,7 +185,7 @@ class Offer(Intangible): default=None, description="The date when the item becomes valid.", ) - itemOffered: Optional[Union[List[Union['Service', 'AggregateOffer', 'CreativeWork', 'MenuItem', 'Event', 'Trip', 'Product', str]], 'Service', 'AggregateOffer', 'CreativeWork', 'MenuItem', 'Event', 'Trip', 'Product', str]] = Field( + itemOffered: Optional[Union[List[Union['Event', 'MenuItem', 'Trip', 'AggregateOffer', 'Product', 'Service', 'CreativeWork', str]], 'Event', 'MenuItem', 'Trip', 'AggregateOffer', 'Product', 'Service', 'CreativeWork', str]] = Field( default=None, description="An item being offered (or demanded). The transactional nature of the offer or demand" "is documented using [[businessFunction]], e.g. sell, lease etc. While several common" @@ -258,7 +257,7 @@ class Offer(Intangible): description="One or more detailed price specifications, indicating the unit price and delivery or" "payment charges.", ) - ineligibleRegion: Optional[Union[List[Union[str, 'Text', 'GeoShape', 'Place']], str, 'Text', 'GeoShape', 'Place']] = Field( + ineligibleRegion: Optional[Union[List[Union[str, 'Text', 'Place', 'GeoShape']], str, 'Text', 'Place', 'GeoShape']] = Field( default=None, description="The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for" "the geo-political region(s) for which the offer or delivery charge specification is" @@ -294,22 +293,22 @@ class Offer(Intangible): from pydantic_schemaorg.PaymentMethod import PaymentMethod from pydantic_schemaorg.BusinessFunction import BusinessFunction from pydantic_schemaorg.URL import URL - from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.PhysicalActivityCategory import PhysicalActivityCategory + from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.MerchantReturnPolicy import MerchantReturnPolicy from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Time import Time from pydantic_schemaorg.Number import Number - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.WarrantyPromise import WarrantyPromise - from pydantic_schemaorg.Service import Service - from pydantic_schemaorg.AggregateOffer import AggregateOffer - from pydantic_schemaorg.CreativeWork import CreativeWork - from pydantic_schemaorg.MenuItem import MenuItem from pydantic_schemaorg.Event import Event + from pydantic_schemaorg.MenuItem import MenuItem from pydantic_schemaorg.Trip import Trip + from pydantic_schemaorg.AggregateOffer import AggregateOffer from pydantic_schemaorg.Product import Product + from pydantic_schemaorg.Service import Service + from pydantic_schemaorg.CreativeWork import CreativeWork from pydantic_schemaorg.Review import Review from pydantic_schemaorg.OfferItemCondition import OfferItemCondition from pydantic_schemaorg.OfferShippingDetails import OfferShippingDetails diff --git a/pydantic_schemaorg/OfferCatalog.py b/pydantic_schemaorg/OfferCatalog.py index 5a230371..afa1f247 100644 --- a/pydantic_schemaorg/OfferCatalog.py +++ b/pydantic_schemaorg/OfferCatalog.py @@ -12,5 +12,5 @@ class OfferCatalog(ItemList): See: https://schema.org/OfferCatalog Model depth: 4 """ - type_: str = Field(default="OfferCatalog", alias='@type', constant=True) + type_: str = Field(default="OfferCatalog", alias='@type', const=True) diff --git a/pydantic_schemaorg/OfferForLease.py b/pydantic_schemaorg/OfferForLease.py index 926e5854..3b775836 100644 --- a/pydantic_schemaorg/OfferForLease.py +++ b/pydantic_schemaorg/OfferForLease.py @@ -14,5 +14,5 @@ class OfferForLease(Offer): See: https://schema.org/OfferForLease Model depth: 4 """ - type_: str = Field(default="OfferForLease", alias='@type', constant=True) + type_: str = Field(default="OfferForLease", alias='@type', const=True) diff --git a/pydantic_schemaorg/OfferForPurchase.py b/pydantic_schemaorg/OfferForPurchase.py index 16489afc..1734d49b 100644 --- a/pydantic_schemaorg/OfferForPurchase.py +++ b/pydantic_schemaorg/OfferForPurchase.py @@ -14,5 +14,5 @@ class OfferForPurchase(Offer): See: https://schema.org/OfferForPurchase Model depth: 4 """ - type_: str = Field(default="OfferForPurchase", alias='@type', constant=True) + type_: str = Field(default="OfferForPurchase", alias='@type', const=True) diff --git a/pydantic_schemaorg/OfferItemCondition.py b/pydantic_schemaorg/OfferItemCondition.py index 93af5392..790b2dbe 100644 --- a/pydantic_schemaorg/OfferItemCondition.py +++ b/pydantic_schemaorg/OfferItemCondition.py @@ -11,5 +11,5 @@ class OfferItemCondition(Enumeration): See: https://schema.org/OfferItemCondition Model depth: 4 """ - type_: str = Field(default="OfferItemCondition", alias='@type', constant=True) + type_: str = Field(default="OfferItemCondition", alias='@type', const=True) diff --git a/pydantic_schemaorg/OfferShippingDetails.py b/pydantic_schemaorg/OfferShippingDetails.py index 690fb955..cbe39858 100644 --- a/pydantic_schemaorg/OfferShippingDetails.py +++ b/pydantic_schemaorg/OfferShippingDetails.py @@ -20,7 +20,7 @@ class OfferShippingDetails(StructuredValue): See: https://schema.org/OfferShippingDetails Model depth: 4 """ - type_: str = Field(default="OfferShippingDetails", alias='@type', constant=True) + type_: str = Field(default="OfferShippingDetails", alias='@type', const=True) shippingLabel: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within" diff --git a/pydantic_schemaorg/OfficeEquipmentStore.py b/pydantic_schemaorg/OfficeEquipmentStore.py index a955ebbf..00b7d89c 100644 --- a/pydantic_schemaorg/OfficeEquipmentStore.py +++ b/pydantic_schemaorg/OfficeEquipmentStore.py @@ -11,5 +11,5 @@ class OfficeEquipmentStore(Store): See: https://schema.org/OfficeEquipmentStore Model depth: 5 """ - type_: str = Field(default="OfficeEquipmentStore", alias='@type', constant=True) + type_: str = Field(default="OfficeEquipmentStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/OfficialLegalValue.py b/pydantic_schemaorg/OfficialLegalValue.py index ffd2375e..5c8be546 100644 --- a/pydantic_schemaorg/OfficialLegalValue.py +++ b/pydantic_schemaorg/OfficialLegalValue.py @@ -14,5 +14,5 @@ class OfficialLegalValue(LegalValueLevel): See: https://schema.org/OfficialLegalValue Model depth: 5 """ - type_: str = Field(default="OfficialLegalValue", alias='@type', constant=True) + type_: str = Field(default="OfficialLegalValue", alias='@type', const=True) diff --git a/pydantic_schemaorg/OfflineEventAttendanceMode.py b/pydantic_schemaorg/OfflineEventAttendanceMode.py index 12993d15..7f4271c3 100644 --- a/pydantic_schemaorg/OfflineEventAttendanceMode.py +++ b/pydantic_schemaorg/OfflineEventAttendanceMode.py @@ -11,5 +11,5 @@ class OfflineEventAttendanceMode(EventAttendanceModeEnumeration): See: https://schema.org/OfflineEventAttendanceMode Model depth: 5 """ - type_: str = Field(default="OfflineEventAttendanceMode", alias='@type', constant=True) + type_: str = Field(default="OfflineEventAttendanceMode", alias='@type', const=True) diff --git a/pydantic_schemaorg/OfflinePermanently.py b/pydantic_schemaorg/OfflinePermanently.py index e48581a8..b7db6c28 100644 --- a/pydantic_schemaorg/OfflinePermanently.py +++ b/pydantic_schemaorg/OfflinePermanently.py @@ -11,5 +11,5 @@ class OfflinePermanently(GameServerStatus): See: https://schema.org/OfflinePermanently Model depth: 6 """ - type_: str = Field(default="OfflinePermanently", alias='@type', constant=True) + type_: str = Field(default="OfflinePermanently", alias='@type', const=True) diff --git a/pydantic_schemaorg/OfflineTemporarily.py b/pydantic_schemaorg/OfflineTemporarily.py index 2142f24a..eb8ed32b 100644 --- a/pydantic_schemaorg/OfflineTemporarily.py +++ b/pydantic_schemaorg/OfflineTemporarily.py @@ -11,5 +11,5 @@ class OfflineTemporarily(GameServerStatus): See: https://schema.org/OfflineTemporarily Model depth: 6 """ - type_: str = Field(default="OfflineTemporarily", alias='@type', constant=True) + type_: str = Field(default="OfflineTemporarily", alias='@type', const=True) diff --git a/pydantic_schemaorg/OnDemandEvent.py b/pydantic_schemaorg/OnDemandEvent.py index a2a0ce84..1cc23618 100644 --- a/pydantic_schemaorg/OnDemandEvent.py +++ b/pydantic_schemaorg/OnDemandEvent.py @@ -12,5 +12,5 @@ class OnDemandEvent(PublicationEvent): See: https://schema.org/OnDemandEvent Model depth: 4 """ - type_: str = Field(default="OnDemandEvent", alias='@type', constant=True) + type_: str = Field(default="OnDemandEvent", alias='@type', const=True) diff --git a/pydantic_schemaorg/OnSitePickup.py b/pydantic_schemaorg/OnSitePickup.py index 6fb94082..971ea958 100644 --- a/pydantic_schemaorg/OnSitePickup.py +++ b/pydantic_schemaorg/OnSitePickup.py @@ -11,5 +11,5 @@ class OnSitePickup(DeliveryMethod): See: https://schema.org/OnSitePickup Model depth: 5 """ - type_: str = Field(default="OnSitePickup", alias='@type', constant=True) + type_: str = Field(default="OnSitePickup", alias='@type', const=True) diff --git a/pydantic_schemaorg/Oncologic.py b/pydantic_schemaorg/Oncologic.py index c0c26013..5a6bcf06 100644 --- a/pydantic_schemaorg/Oncologic.py +++ b/pydantic_schemaorg/Oncologic.py @@ -13,5 +13,5 @@ class Oncologic(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Oncologic Model depth: 5 """ - type_: str = Field(default="Oncologic", alias='@type', constant=True) + type_: str = Field(default="Oncologic", alias='@type', const=True) diff --git a/pydantic_schemaorg/OneTimePayments.py b/pydantic_schemaorg/OneTimePayments.py index d6ca4382..53c627f7 100644 --- a/pydantic_schemaorg/OneTimePayments.py +++ b/pydantic_schemaorg/OneTimePayments.py @@ -11,5 +11,5 @@ class OneTimePayments(GovernmentBenefitsType): See: https://schema.org/OneTimePayments Model depth: 5 """ - type_: str = Field(default="OneTimePayments", alias='@type', constant=True) + type_: str = Field(default="OneTimePayments", alias='@type', const=True) diff --git a/pydantic_schemaorg/Online.py b/pydantic_schemaorg/Online.py index df059077..9b4029b1 100644 --- a/pydantic_schemaorg/Online.py +++ b/pydantic_schemaorg/Online.py @@ -11,5 +11,5 @@ class Online(GameServerStatus): See: https://schema.org/Online Model depth: 6 """ - type_: str = Field(default="Online", alias='@type', constant=True) + type_: str = Field(default="Online", alias='@type', const=True) diff --git a/pydantic_schemaorg/OnlineEventAttendanceMode.py b/pydantic_schemaorg/OnlineEventAttendanceMode.py index 3b206c4c..6770e67f 100644 --- a/pydantic_schemaorg/OnlineEventAttendanceMode.py +++ b/pydantic_schemaorg/OnlineEventAttendanceMode.py @@ -11,5 +11,5 @@ class OnlineEventAttendanceMode(EventAttendanceModeEnumeration): See: https://schema.org/OnlineEventAttendanceMode Model depth: 5 """ - type_: str = Field(default="OnlineEventAttendanceMode", alias='@type', constant=True) + type_: str = Field(default="OnlineEventAttendanceMode", alias='@type', const=True) diff --git a/pydantic_schemaorg/OnlineFull.py b/pydantic_schemaorg/OnlineFull.py index c3bb4167..1543c274 100644 --- a/pydantic_schemaorg/OnlineFull.py +++ b/pydantic_schemaorg/OnlineFull.py @@ -12,5 +12,5 @@ class OnlineFull(GameServerStatus): See: https://schema.org/OnlineFull Model depth: 6 """ - type_: str = Field(default="OnlineFull", alias='@type', constant=True) + type_: str = Field(default="OnlineFull", alias='@type', const=True) diff --git a/pydantic_schemaorg/OnlineOnly.py b/pydantic_schemaorg/OnlineOnly.py index da44f5bb..062d2489 100644 --- a/pydantic_schemaorg/OnlineOnly.py +++ b/pydantic_schemaorg/OnlineOnly.py @@ -11,5 +11,5 @@ class OnlineOnly(ItemAvailability): See: https://schema.org/OnlineOnly Model depth: 5 """ - type_: str = Field(default="OnlineOnly", alias='@type', constant=True) + type_: str = Field(default="OnlineOnly", alias='@type', const=True) diff --git a/pydantic_schemaorg/OpenTrial.py b/pydantic_schemaorg/OpenTrial.py index 4daaf836..6cefd336 100644 --- a/pydantic_schemaorg/OpenTrial.py +++ b/pydantic_schemaorg/OpenTrial.py @@ -12,5 +12,5 @@ class OpenTrial(MedicalTrialDesign): See: https://schema.org/OpenTrial Model depth: 6 """ - type_: str = Field(default="OpenTrial", alias='@type', constant=True) + type_: str = Field(default="OpenTrial", alias='@type', const=True) diff --git a/pydantic_schemaorg/OpeningHoursSpecification.py b/pydantic_schemaorg/OpeningHoursSpecification.py index 88c9405d..bf8eae0b 100644 --- a/pydantic_schemaorg/OpeningHoursSpecification.py +++ b/pydantic_schemaorg/OpeningHoursSpecification.py @@ -18,7 +18,7 @@ class OpeningHoursSpecification(StructuredValue): See: https://schema.org/OpeningHoursSpecification Model depth: 4 """ - type_: str = Field(default="OpeningHoursSpecification", alias='@type', constant=True) + type_: str = Field(default="OpeningHoursSpecification", alias='@type', const=True) opens: Optional[Union[List[Union[time, 'Time', str]], time, 'Time', str]] = Field( default=None, description="The opening hour of the place or service on the given day(s) of the week.", diff --git a/pydantic_schemaorg/OpinionNewsArticle.py b/pydantic_schemaorg/OpinionNewsArticle.py index d3ba00e3..38269a76 100644 --- a/pydantic_schemaorg/OpinionNewsArticle.py +++ b/pydantic_schemaorg/OpinionNewsArticle.py @@ -14,5 +14,5 @@ class OpinionNewsArticle(NewsArticle): See: https://schema.org/OpinionNewsArticle Model depth: 5 """ - type_: str = Field(default="OpinionNewsArticle", alias='@type', constant=True) + type_: str = Field(default="OpinionNewsArticle", alias='@type', const=True) diff --git a/pydantic_schemaorg/Optician.py b/pydantic_schemaorg/Optician.py index c09e99db..29051601 100644 --- a/pydantic_schemaorg/Optician.py +++ b/pydantic_schemaorg/Optician.py @@ -11,5 +11,5 @@ class Optician(MedicalBusiness): See: https://schema.org/Optician Model depth: 5 """ - type_: str = Field(default="Optician", alias='@type', constant=True) + type_: str = Field(default="Optician", alias='@type', const=True) diff --git a/pydantic_schemaorg/Optometric.py b/pydantic_schemaorg/Optometric.py index 002e34b5..88a4faa9 100644 --- a/pydantic_schemaorg/Optometric.py +++ b/pydantic_schemaorg/Optometric.py @@ -12,5 +12,5 @@ class Optometric(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Optometric Model depth: 5 """ - type_: str = Field(default="Optometric", alias='@type', constant=True) + type_: str = Field(default="Optometric", alias='@type', const=True) diff --git a/pydantic_schemaorg/Order.py b/pydantic_schemaorg/Order.py index d8fb5b4e..eb4de8ed 100644 --- a/pydantic_schemaorg/Order.py +++ b/pydantic_schemaorg/Order.py @@ -3,8 +3,7 @@ from datetime import date, datetime from typing import List, Optional, Union -from decimal import Decimal -from pydantic import AnyUrl, StrictBool +from pydantic import AnyUrl, StrictBool, StrictInt, StrictFloat from pydantic import Field @@ -18,7 +17,7 @@ class Order(Intangible): See: https://schema.org/Order Model depth: 3 """ - type_: str = Field(default="Order", alias='@type', constant=True) + type_: str = Field(default="Order", alias='@type', const=True) orderDate: Optional[Union[List[Union[datetime, 'DateTime', date, 'Date', str]], datetime, 'DateTime', date, 'Date', str]] = Field( default=None, description="Date order was placed.", @@ -27,7 +26,7 @@ class Order(Intangible): default=None, description="The date that payment is due.", ) - discount: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + discount: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="Any discount applied (to an Order).", ) @@ -62,11 +61,11 @@ class Order(Intangible): default=None, description="The billing address for the order.", ) - customer: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + customer: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="Party placing the order or paying the invoice.", ) - seller: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + seller: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="An entity which offers (sells / leases / lends / loans) the services / goods. A seller may" "also be a provider.", @@ -95,7 +94,7 @@ class Order(Intangible): default=None, description="The offer(s) -- e.g., product, quantity and price combinations -- included in the order.", ) - merchant: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + merchant: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="'merchant' is an out-dated term for 'seller'.", ) @@ -107,7 +106,7 @@ class Order(Intangible): default=None, description="The name of the credit card or other method of payment for the order.", ) - broker: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + broker: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="An entity that arranges for an exchange between a buyer and a seller. In most cases a broker" "never acquires or releases ownership of a product or service involved in an exchange." @@ -127,8 +126,8 @@ class Order(Intangible): from pydantic_schemaorg.OrderItem import OrderItem from pydantic_schemaorg.Product import Product from pydantic_schemaorg.PostalAddress import PostalAddress - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.OrderStatus import OrderStatus from pydantic_schemaorg.Invoice import Invoice from pydantic_schemaorg.Offer import Offer diff --git a/pydantic_schemaorg/OrderAction.py b/pydantic_schemaorg/OrderAction.py index 9499f8cc..23e2f9ec 100644 --- a/pydantic_schemaorg/OrderAction.py +++ b/pydantic_schemaorg/OrderAction.py @@ -14,7 +14,7 @@ class OrderAction(TradeAction): See: https://schema.org/OrderAction Model depth: 4 """ - type_: str = Field(default="OrderAction", alias='@type', constant=True) + type_: str = Field(default="OrderAction", alias='@type', const=True) deliveryMethod: Optional[Union[List[Union['DeliveryMethod', str]], 'DeliveryMethod', str]] = Field( default=None, description="A sub property of instrument. The method of delivery.", diff --git a/pydantic_schemaorg/OrderCancelled.py b/pydantic_schemaorg/OrderCancelled.py index d70b3b2e..b227365c 100644 --- a/pydantic_schemaorg/OrderCancelled.py +++ b/pydantic_schemaorg/OrderCancelled.py @@ -11,5 +11,5 @@ class OrderCancelled(OrderStatus): See: https://schema.org/OrderCancelled Model depth: 6 """ - type_: str = Field(default="OrderCancelled", alias='@type', constant=True) + type_: str = Field(default="OrderCancelled", alias='@type', const=True) diff --git a/pydantic_schemaorg/OrderDelivered.py b/pydantic_schemaorg/OrderDelivered.py index 0d1cbaed..176653f6 100644 --- a/pydantic_schemaorg/OrderDelivered.py +++ b/pydantic_schemaorg/OrderDelivered.py @@ -11,5 +11,5 @@ class OrderDelivered(OrderStatus): See: https://schema.org/OrderDelivered Model depth: 6 """ - type_: str = Field(default="OrderDelivered", alias='@type', constant=True) + type_: str = Field(default="OrderDelivered", alias='@type', const=True) diff --git a/pydantic_schemaorg/OrderInTransit.py b/pydantic_schemaorg/OrderInTransit.py index 52f91589..d2ada2b5 100644 --- a/pydantic_schemaorg/OrderInTransit.py +++ b/pydantic_schemaorg/OrderInTransit.py @@ -11,5 +11,5 @@ class OrderInTransit(OrderStatus): See: https://schema.org/OrderInTransit Model depth: 6 """ - type_: str = Field(default="OrderInTransit", alias='@type', constant=True) + type_: str = Field(default="OrderInTransit", alias='@type', const=True) diff --git a/pydantic_schemaorg/OrderItem.py b/pydantic_schemaorg/OrderItem.py index 1e2329da..55bb4736 100644 --- a/pydantic_schemaorg/OrderItem.py +++ b/pydantic_schemaorg/OrderItem.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -16,7 +16,7 @@ class OrderItem(Intangible): See: https://schema.org/OrderItem Model depth: 3 """ - type_: str = Field(default="OrderItem", alias='@type', constant=True) + type_: str = Field(default="OrderItem", alias='@type', const=True) orderDelivery: Optional[Union[List[Union['ParcelDelivery', str]], 'ParcelDelivery', str]] = Field( default=None, description="The delivery of the parcel related to this order or order item.", @@ -25,7 +25,7 @@ class OrderItem(Intangible): default=None, description="The item ordered.", ) - orderQuantity: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + orderQuantity: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The number of the item ordered. If the property is not set, assume the quantity is one.", ) diff --git a/pydantic_schemaorg/OrderPaymentDue.py b/pydantic_schemaorg/OrderPaymentDue.py index 77dc0193..85c540d9 100644 --- a/pydantic_schemaorg/OrderPaymentDue.py +++ b/pydantic_schemaorg/OrderPaymentDue.py @@ -11,5 +11,5 @@ class OrderPaymentDue(OrderStatus): See: https://schema.org/OrderPaymentDue Model depth: 6 """ - type_: str = Field(default="OrderPaymentDue", alias='@type', constant=True) + type_: str = Field(default="OrderPaymentDue", alias='@type', const=True) diff --git a/pydantic_schemaorg/OrderPickupAvailable.py b/pydantic_schemaorg/OrderPickupAvailable.py index 455d7abe..e6818ce1 100644 --- a/pydantic_schemaorg/OrderPickupAvailable.py +++ b/pydantic_schemaorg/OrderPickupAvailable.py @@ -11,5 +11,5 @@ class OrderPickupAvailable(OrderStatus): See: https://schema.org/OrderPickupAvailable Model depth: 6 """ - type_: str = Field(default="OrderPickupAvailable", alias='@type', constant=True) + type_: str = Field(default="OrderPickupAvailable", alias='@type', const=True) diff --git a/pydantic_schemaorg/OrderProblem.py b/pydantic_schemaorg/OrderProblem.py index 011312f3..7366bc03 100644 --- a/pydantic_schemaorg/OrderProblem.py +++ b/pydantic_schemaorg/OrderProblem.py @@ -11,5 +11,5 @@ class OrderProblem(OrderStatus): See: https://schema.org/OrderProblem Model depth: 6 """ - type_: str = Field(default="OrderProblem", alias='@type', constant=True) + type_: str = Field(default="OrderProblem", alias='@type', const=True) diff --git a/pydantic_schemaorg/OrderProcessing.py b/pydantic_schemaorg/OrderProcessing.py index 285000b8..da946ff4 100644 --- a/pydantic_schemaorg/OrderProcessing.py +++ b/pydantic_schemaorg/OrderProcessing.py @@ -11,5 +11,5 @@ class OrderProcessing(OrderStatus): See: https://schema.org/OrderProcessing Model depth: 6 """ - type_: str = Field(default="OrderProcessing", alias='@type', constant=True) + type_: str = Field(default="OrderProcessing", alias='@type', const=True) diff --git a/pydantic_schemaorg/OrderReturned.py b/pydantic_schemaorg/OrderReturned.py index 7b4b6e29..4a5dd8d6 100644 --- a/pydantic_schemaorg/OrderReturned.py +++ b/pydantic_schemaorg/OrderReturned.py @@ -11,5 +11,5 @@ class OrderReturned(OrderStatus): See: https://schema.org/OrderReturned Model depth: 6 """ - type_: str = Field(default="OrderReturned", alias='@type', constant=True) + type_: str = Field(default="OrderReturned", alias='@type', const=True) diff --git a/pydantic_schemaorg/OrderStatus.py b/pydantic_schemaorg/OrderStatus.py index 326d1b00..f93a2a54 100644 --- a/pydantic_schemaorg/OrderStatus.py +++ b/pydantic_schemaorg/OrderStatus.py @@ -11,5 +11,5 @@ class OrderStatus(StatusEnumeration): See: https://schema.org/OrderStatus Model depth: 5 """ - type_: str = Field(default="OrderStatus", alias='@type', constant=True) + type_: str = Field(default="OrderStatus", alias='@type', const=True) diff --git a/pydantic_schemaorg/Organization.py b/pydantic_schemaorg/Organization.py index 53ee3a96..5f16a3bf 100644 --- a/pydantic_schemaorg/Organization.py +++ b/pydantic_schemaorg/Organization.py @@ -16,7 +16,7 @@ class Organization(Thing): See: https://schema.org/Organization Model depth: 2 """ - type_: str = Field(default="Organization", alias='@type', constant=True) + type_: str = Field(default="Organization", alias='@type', const=True) subOrganization: Optional[Union[List[Union['Organization', str]], 'Organization', str]] = Field( default=None, description="A relationship between two organizations where the first includes the second, e.g.," @@ -41,7 +41,7 @@ class Organization(Thing): default=None, description="The larger organization that this organization is a [[subOrganization]] of, if any.", ) - funder: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + funder: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A person or organization that supports (sponsors) something through some kind of financial" "contribution.", @@ -95,7 +95,7 @@ class Organization(Thing): description="The International Standard of Industrial Classification of All Economic Activities" "(ISIC), Revision 4 code for a particular organization, business person, or place.", ) - member: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + member: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A member of an Organization or a ProgramMembership. Organizations can be members of" "organizations; ProgramMembership is typically for individuals.", @@ -122,7 +122,7 @@ class Organization(Thing): default=None, description="Specifies a MerchantReturnPolicy that may be applicable.", ) - location: Optional[Union[List[Union[str, 'Text', 'Place', 'VirtualLocation', 'PostalAddress']], str, 'Text', 'Place', 'VirtualLocation', 'PostalAddress']] = Field( + location: Optional[Union[List[Union[str, 'Text', 'PostalAddress', 'Place', 'VirtualLocation']], str, 'Text', 'PostalAddress', 'Place', 'VirtualLocation']] = Field( default=None, description="The location of, for example, where an event is happening, where an organization is located," "or where an action takes place.", @@ -185,7 +185,7 @@ class Organization(Thing): default=None, description="An associated logo.", ) - members: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + members: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A member of this organization.", ) @@ -213,7 +213,7 @@ class Organization(Thing): default=None, description="Alumni of an organization.", ) - sponsor: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + sponsor: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A person or organization that supports a thing through a pledge, promise, or financial" "contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.", @@ -243,7 +243,7 @@ class Organization(Thing): default=None, description="The number of employees in an organization e.g. business.", ) - ownershipFundingInfo: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'AboutPage', 'CreativeWork']], AnyUrl, 'URL', str, 'Text', 'AboutPage', 'CreativeWork']] = Field( + ownershipFundingInfo: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'CreativeWork', 'AboutPage']], AnyUrl, 'URL', str, 'Text', 'CreativeWork', 'AboutPage']] = Field( default=None, description="For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]])," "a description of organizational ownership structure; funding and grants. In a news/media" @@ -327,8 +327,8 @@ class Organization(Thing): from pydantic_schemaorg.Language import Language from pydantic_schemaorg.Brand import Brand from pydantic_schemaorg.MerchantReturnPolicy import MerchantReturnPolicy - from pydantic_schemaorg.VirtualLocation import VirtualLocation from pydantic_schemaorg.PostalAddress import PostalAddress + from pydantic_schemaorg.VirtualLocation import VirtualLocation from pydantic_schemaorg.InteractionCounter import InteractionCounter from pydantic_schemaorg.EducationalOccupationalCredential import EducationalOccupationalCredential from pydantic_schemaorg.NonprofitType import NonprofitType diff --git a/pydantic_schemaorg/OrganizationRole.py b/pydantic_schemaorg/OrganizationRole.py index d5ced8ef..4f69360d 100644 --- a/pydantic_schemaorg/OrganizationRole.py +++ b/pydantic_schemaorg/OrganizationRole.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -15,8 +15,8 @@ class OrganizationRole(Role): See: https://schema.org/OrganizationRole Model depth: 4 """ - type_: str = Field(default="OrganizationRole", alias='@type', constant=True) - numberedPosition: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + type_: str = Field(default="OrganizationRole", alias='@type', const=True) + numberedPosition: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="A number associated with a role in an organization, for example, the number on an athlete's" "jersey.", diff --git a/pydantic_schemaorg/OrganizeAction.py b/pydantic_schemaorg/OrganizeAction.py index 2573718a..cf3229fe 100644 --- a/pydantic_schemaorg/OrganizeAction.py +++ b/pydantic_schemaorg/OrganizeAction.py @@ -11,5 +11,5 @@ class OrganizeAction(Action): See: https://schema.org/OrganizeAction Model depth: 3 """ - type_: str = Field(default="OrganizeAction", alias='@type', constant=True) + type_: str = Field(default="OrganizeAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/OriginalMediaContent.py b/pydantic_schemaorg/OriginalMediaContent.py index 80dd0371..09401f54 100644 --- a/pydantic_schemaorg/OriginalMediaContent.py +++ b/pydantic_schemaorg/OriginalMediaContent.py @@ -20,5 +20,5 @@ class OriginalMediaContent(MediaManipulationRatingEnumeration): See: https://schema.org/OriginalMediaContent Model depth: 5 """ - type_: str = Field(default="OriginalMediaContent", alias='@type', constant=True) + type_: str = Field(default="OriginalMediaContent", alias='@type', const=True) diff --git a/pydantic_schemaorg/OriginalShippingFees.py b/pydantic_schemaorg/OriginalShippingFees.py index ab9d7c0c..e1e40b32 100644 --- a/pydantic_schemaorg/OriginalShippingFees.py +++ b/pydantic_schemaorg/OriginalShippingFees.py @@ -11,5 +11,5 @@ class OriginalShippingFees(ReturnFeesEnumeration): See: https://schema.org/OriginalShippingFees Model depth: 5 """ - type_: str = Field(default="OriginalShippingFees", alias='@type', constant=True) + type_: str = Field(default="OriginalShippingFees", alias='@type', const=True) diff --git a/pydantic_schemaorg/Osteopathic.py b/pydantic_schemaorg/Osteopathic.py index a4d11eb2..b17c4d19 100644 --- a/pydantic_schemaorg/Osteopathic.py +++ b/pydantic_schemaorg/Osteopathic.py @@ -11,5 +11,5 @@ class Osteopathic(MedicineSystem): See: https://schema.org/Osteopathic Model depth: 6 """ - type_: str = Field(default="Osteopathic", alias='@type', constant=True) + type_: str = Field(default="Osteopathic", alias='@type', const=True) diff --git a/pydantic_schemaorg/Otolaryngologic.py b/pydantic_schemaorg/Otolaryngologic.py index 0676d1b6..e234d408 100644 --- a/pydantic_schemaorg/Otolaryngologic.py +++ b/pydantic_schemaorg/Otolaryngologic.py @@ -13,5 +13,5 @@ class Otolaryngologic(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Otolaryngologic Model depth: 5 """ - type_: str = Field(default="Otolaryngologic", alias='@type', constant=True) + type_: str = Field(default="Otolaryngologic", alias='@type', const=True) diff --git a/pydantic_schemaorg/OutOfStock.py b/pydantic_schemaorg/OutOfStock.py index 779d118d..5d95a142 100644 --- a/pydantic_schemaorg/OutOfStock.py +++ b/pydantic_schemaorg/OutOfStock.py @@ -11,5 +11,5 @@ class OutOfStock(ItemAvailability): See: https://schema.org/OutOfStock Model depth: 5 """ - type_: str = Field(default="OutOfStock", alias='@type', constant=True) + type_: str = Field(default="OutOfStock", alias='@type', const=True) diff --git a/pydantic_schemaorg/OutletStore.py b/pydantic_schemaorg/OutletStore.py index ca819ffc..4f25d6a7 100644 --- a/pydantic_schemaorg/OutletStore.py +++ b/pydantic_schemaorg/OutletStore.py @@ -11,5 +11,5 @@ class OutletStore(Store): See: https://schema.org/OutletStore Model depth: 5 """ - type_: str = Field(default="OutletStore", alias='@type', constant=True) + type_: str = Field(default="OutletStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/OverviewHealthAspect.py b/pydantic_schemaorg/OverviewHealthAspect.py index ab5db3c6..18780c50 100644 --- a/pydantic_schemaorg/OverviewHealthAspect.py +++ b/pydantic_schemaorg/OverviewHealthAspect.py @@ -12,5 +12,5 @@ class OverviewHealthAspect(HealthAspectEnumeration): See: https://schema.org/OverviewHealthAspect Model depth: 5 """ - type_: str = Field(default="OverviewHealthAspect", alias='@type', constant=True) + type_: str = Field(default="OverviewHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/OwnershipInfo.py b/pydantic_schemaorg/OwnershipInfo.py index ad5930ff..67d3a956 100644 --- a/pydantic_schemaorg/OwnershipInfo.py +++ b/pydantic_schemaorg/OwnershipInfo.py @@ -16,8 +16,8 @@ class OwnershipInfo(StructuredValue): See: https://schema.org/OwnershipInfo Model depth: 4 """ - type_: str = Field(default="OwnershipInfo", alias='@type', constant=True) - acquiredFrom: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + type_: str = Field(default="OwnershipInfo", alias='@type', const=True) + acquiredFrom: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The organization or person from which the product was acquired.", ) @@ -36,8 +36,8 @@ class OwnershipInfo(StructuredValue): if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Service import Service from pydantic_schemaorg.Product import Product from pydantic_schemaorg.DateTime import DateTime diff --git a/pydantic_schemaorg/PET.py b/pydantic_schemaorg/PET.py index ac5a140e..3852dbdd 100644 --- a/pydantic_schemaorg/PET.py +++ b/pydantic_schemaorg/PET.py @@ -11,5 +11,5 @@ class PET(MedicalImagingTechnique): See: https://schema.org/PET Model depth: 6 """ - type_: str = Field(default="PET", alias='@type', constant=True) + type_: str = Field(default="PET", alias='@type', const=True) diff --git a/pydantic_schemaorg/PaidLeave.py b/pydantic_schemaorg/PaidLeave.py index 53e563ee..254f7485 100644 --- a/pydantic_schemaorg/PaidLeave.py +++ b/pydantic_schemaorg/PaidLeave.py @@ -11,5 +11,5 @@ class PaidLeave(GovernmentBenefitsType): See: https://schema.org/PaidLeave Model depth: 5 """ - type_: str = Field(default="PaidLeave", alias='@type', constant=True) + type_: str = Field(default="PaidLeave", alias='@type', const=True) diff --git a/pydantic_schemaorg/PaintAction.py b/pydantic_schemaorg/PaintAction.py index 20b25bc5..5eebf0e6 100644 --- a/pydantic_schemaorg/PaintAction.py +++ b/pydantic_schemaorg/PaintAction.py @@ -11,5 +11,5 @@ class PaintAction(CreateAction): See: https://schema.org/PaintAction Model depth: 4 """ - type_: str = Field(default="PaintAction", alias='@type', constant=True) + type_: str = Field(default="PaintAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Painting.py b/pydantic_schemaorg/Painting.py index a74ce234..0341a961 100644 --- a/pydantic_schemaorg/Painting.py +++ b/pydantic_schemaorg/Painting.py @@ -11,5 +11,5 @@ class Painting(CreativeWork): See: https://schema.org/Painting Model depth: 3 """ - type_: str = Field(default="Painting", alias='@type', constant=True) + type_: str = Field(default="Painting", alias='@type', const=True) diff --git a/pydantic_schemaorg/PalliativeProcedure.py b/pydantic_schemaorg/PalliativeProcedure.py index af51f335..487dc3c2 100644 --- a/pydantic_schemaorg/PalliativeProcedure.py +++ b/pydantic_schemaorg/PalliativeProcedure.py @@ -13,5 +13,5 @@ class PalliativeProcedure(MedicalTherapy, MedicalProcedure): See: https://schema.org/PalliativeProcedure Model depth: 4 """ - type_: str = Field(default="PalliativeProcedure", alias='@type', constant=True) + type_: str = Field(default="PalliativeProcedure", alias='@type', const=True) diff --git a/pydantic_schemaorg/Paperback.py b/pydantic_schemaorg/Paperback.py index 6925f57e..b7d44ea5 100644 --- a/pydantic_schemaorg/Paperback.py +++ b/pydantic_schemaorg/Paperback.py @@ -11,5 +11,5 @@ class Paperback(BookFormatType): See: https://schema.org/Paperback Model depth: 5 """ - type_: str = Field(default="Paperback", alias='@type', constant=True) + type_: str = Field(default="Paperback", alias='@type', const=True) diff --git a/pydantic_schemaorg/ParcelDelivery.py b/pydantic_schemaorg/ParcelDelivery.py index e4bb132d..f77427f1 100644 --- a/pydantic_schemaorg/ParcelDelivery.py +++ b/pydantic_schemaorg/ParcelDelivery.py @@ -16,7 +16,7 @@ class ParcelDelivery(Intangible): See: https://schema.org/ParcelDelivery Model depth: 3 """ - type_: str = Field(default="ParcelDelivery", alias='@type', constant=True) + type_: str = Field(default="ParcelDelivery", alias='@type', const=True) trackingNumber: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Shipper tracking number.", @@ -53,7 +53,7 @@ class ParcelDelivery(Intangible): default=None, description="Shipper's address.", ) - provider: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + provider: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The service provider, service operator, or service performer; the goods producer." "Another party (a seller) may offer those services or goods on behalf of the provider." diff --git a/pydantic_schemaorg/ParcelService.py b/pydantic_schemaorg/ParcelService.py index 71b92e2a..6854d39f 100644 --- a/pydantic_schemaorg/ParcelService.py +++ b/pydantic_schemaorg/ParcelService.py @@ -13,5 +13,5 @@ class ParcelService(DeliveryMethod): See: https://schema.org/ParcelService Model depth: 5 """ - type_: str = Field(default="ParcelService", alias='@type', constant=True) + type_: str = Field(default="ParcelService", alias='@type', const=True) diff --git a/pydantic_schemaorg/ParentAudience.py b/pydantic_schemaorg/ParentAudience.py index c7d89ddf..5d52d042 100644 --- a/pydantic_schemaorg/ParentAudience.py +++ b/pydantic_schemaorg/ParentAudience.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -15,12 +15,12 @@ class ParentAudience(PeopleAudience): See: https://schema.org/ParentAudience Model depth: 5 """ - type_: str = Field(default="ParentAudience", alias='@type', constant=True) - childMinAge: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + type_: str = Field(default="ParentAudience", alias='@type', const=True) + childMinAge: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Minimal age of the child.", ) - childMaxAge: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + childMaxAge: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Maximal age of the child.", ) diff --git a/pydantic_schemaorg/ParentalSupport.py b/pydantic_schemaorg/ParentalSupport.py index c8cf5d51..380c0e54 100644 --- a/pydantic_schemaorg/ParentalSupport.py +++ b/pydantic_schemaorg/ParentalSupport.py @@ -11,5 +11,5 @@ class ParentalSupport(GovernmentBenefitsType): See: https://schema.org/ParentalSupport Model depth: 5 """ - type_: str = Field(default="ParentalSupport", alias='@type', constant=True) + type_: str = Field(default="ParentalSupport", alias='@type', const=True) diff --git a/pydantic_schemaorg/Park.py b/pydantic_schemaorg/Park.py index e868541f..103a3abf 100644 --- a/pydantic_schemaorg/Park.py +++ b/pydantic_schemaorg/Park.py @@ -11,5 +11,5 @@ class Park(CivicStructure): See: https://schema.org/Park Model depth: 4 """ - type_: str = Field(default="Park", alias='@type', constant=True) + type_: str = Field(default="Park", alias='@type', const=True) diff --git a/pydantic_schemaorg/ParkingFacility.py b/pydantic_schemaorg/ParkingFacility.py index 27918f55..fe538e10 100644 --- a/pydantic_schemaorg/ParkingFacility.py +++ b/pydantic_schemaorg/ParkingFacility.py @@ -11,5 +11,5 @@ class ParkingFacility(CivicStructure): See: https://schema.org/ParkingFacility Model depth: 4 """ - type_: str = Field(default="ParkingFacility", alias='@type', constant=True) + type_: str = Field(default="ParkingFacility", alias='@type', const=True) diff --git a/pydantic_schemaorg/ParkingMap.py b/pydantic_schemaorg/ParkingMap.py index aeaab853..2c85bfca 100644 --- a/pydantic_schemaorg/ParkingMap.py +++ b/pydantic_schemaorg/ParkingMap.py @@ -11,5 +11,5 @@ class ParkingMap(MapCategoryType): See: https://schema.org/ParkingMap Model depth: 5 """ - type_: str = Field(default="ParkingMap", alias='@type', constant=True) + type_: str = Field(default="ParkingMap", alias='@type', const=True) diff --git a/pydantic_schemaorg/PartiallyInForce.py b/pydantic_schemaorg/PartiallyInForce.py index 5ab8745c..e939f1ff 100644 --- a/pydantic_schemaorg/PartiallyInForce.py +++ b/pydantic_schemaorg/PartiallyInForce.py @@ -11,5 +11,5 @@ class PartiallyInForce(LegalForceStatus): See: https://schema.org/PartiallyInForce Model depth: 6 """ - type_: str = Field(default="PartiallyInForce", alias='@type', constant=True) + type_: str = Field(default="PartiallyInForce", alias='@type', const=True) diff --git a/pydantic_schemaorg/Pathology.py b/pydantic_schemaorg/Pathology.py index 1da15d14..df1b9d43 100644 --- a/pydantic_schemaorg/Pathology.py +++ b/pydantic_schemaorg/Pathology.py @@ -14,5 +14,5 @@ class Pathology(MedicalSpecialty): See: https://schema.org/Pathology Model depth: 6 """ - type_: str = Field(default="Pathology", alias='@type', constant=True) + type_: str = Field(default="Pathology", alias='@type', const=True) diff --git a/pydantic_schemaorg/PathologyTest.py b/pydantic_schemaorg/PathologyTest.py index efe557c4..6fcf5d44 100644 --- a/pydantic_schemaorg/PathologyTest.py +++ b/pydantic_schemaorg/PathologyTest.py @@ -15,7 +15,7 @@ class PathologyTest(MedicalTest): See: https://schema.org/PathologyTest Model depth: 4 """ - type_: str = Field(default="PathologyTest", alias='@type', constant=True) + type_: str = Field(default="PathologyTest", alias='@type', const=True) tissueSample: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The type of tissue sample required for the test.", diff --git a/pydantic_schemaorg/Patient.py b/pydantic_schemaorg/Patient.py index 7bbab101..011f240e 100644 --- a/pydantic_schemaorg/Patient.py +++ b/pydantic_schemaorg/Patient.py @@ -15,7 +15,7 @@ class Patient(MedicalAudience, Person): See: https://schema.org/Patient Model depth: 3 """ - type_: str = Field(default="Patient", alias='@type', constant=True) + type_: str = Field(default="Patient", alias='@type', const=True) diagnosis: Optional[Union[List[Union['MedicalCondition', str]], 'MedicalCondition', str]] = Field( default=None, description="One or more alternative conditions considered in the differential diagnosis process" diff --git a/pydantic_schemaorg/PatientExperienceHealthAspect.py b/pydantic_schemaorg/PatientExperienceHealthAspect.py index 96013293..a44e5e36 100644 --- a/pydantic_schemaorg/PatientExperienceHealthAspect.py +++ b/pydantic_schemaorg/PatientExperienceHealthAspect.py @@ -12,5 +12,5 @@ class PatientExperienceHealthAspect(HealthAspectEnumeration): See: https://schema.org/PatientExperienceHealthAspect Model depth: 5 """ - type_: str = Field(default="PatientExperienceHealthAspect", alias='@type', constant=True) + type_: str = Field(default="PatientExperienceHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/PawnShop.py b/pydantic_schemaorg/PawnShop.py index 1f6b05f5..09f82e18 100644 --- a/pydantic_schemaorg/PawnShop.py +++ b/pydantic_schemaorg/PawnShop.py @@ -11,5 +11,5 @@ class PawnShop(Store): See: https://schema.org/PawnShop Model depth: 5 """ - type_: str = Field(default="PawnShop", alias='@type', constant=True) + type_: str = Field(default="PawnShop", alias='@type', const=True) diff --git a/pydantic_schemaorg/PayAction.py b/pydantic_schemaorg/PayAction.py index 9776d87c..6516b4e4 100644 --- a/pydantic_schemaorg/PayAction.py +++ b/pydantic_schemaorg/PayAction.py @@ -14,15 +14,15 @@ class PayAction(TradeAction): See: https://schema.org/PayAction Model depth: 4 """ - type_: str = Field(default="PayAction", alias='@type', constant=True) - recipient: Optional[Union[List[Union['Organization', 'Person', 'ContactPoint', 'Audience', str]], 'Organization', 'Person', 'ContactPoint', 'Audience', str]] = Field( + type_: str = Field(default="PayAction", alias='@type', const=True) + recipient: Optional[Union[List[Union['ContactPoint', 'Audience', 'Organization', 'Person', str]], 'ContactPoint', 'Audience', 'Organization', 'Person', str]] = Field( default=None, description="A sub property of participant. The participant who is at the receiving end of the action.", ) if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization - from pydantic_schemaorg.Person import Person from pydantic_schemaorg.ContactPoint import ContactPoint from pydantic_schemaorg.Audience import Audience + from pydantic_schemaorg.Organization import Organization + from pydantic_schemaorg.Person import Person diff --git a/pydantic_schemaorg/PaymentAutomaticallyApplied.py b/pydantic_schemaorg/PaymentAutomaticallyApplied.py index 452c2de5..c0ca50bf 100644 --- a/pydantic_schemaorg/PaymentAutomaticallyApplied.py +++ b/pydantic_schemaorg/PaymentAutomaticallyApplied.py @@ -11,5 +11,5 @@ class PaymentAutomaticallyApplied(PaymentStatusType): See: https://schema.org/PaymentAutomaticallyApplied Model depth: 6 """ - type_: str = Field(default="PaymentAutomaticallyApplied", alias='@type', constant=True) + type_: str = Field(default="PaymentAutomaticallyApplied", alias='@type', const=True) diff --git a/pydantic_schemaorg/PaymentCard.py b/pydantic_schemaorg/PaymentCard.py index e880ee3b..3187ba51 100644 --- a/pydantic_schemaorg/PaymentCard.py +++ b/pydantic_schemaorg/PaymentCard.py @@ -1,30 +1,29 @@ from __future__ import annotations from typing import TYPE_CHECKING -from pydantic import StrictBool +from pydantic import StrictBool, StrictInt, StrictFloat from typing import List, Optional, Union -from decimal import Decimal from pydantic import Field -from pydantic_schemaorg.PaymentMethod import PaymentMethod from pydantic_schemaorg.FinancialProduct import FinancialProduct +from pydantic_schemaorg.PaymentMethod import PaymentMethod -class PaymentCard(PaymentMethod, FinancialProduct): +class PaymentCard(FinancialProduct, PaymentMethod): """A payment method using a credit, debit, store or other card to associate the payment with" "an account. See: https://schema.org/PaymentCard Model depth: 5 """ - type_: str = Field(default="PaymentCard", alias='@type', constant=True) + type_: str = Field(default="PaymentCard", alias='@type', const=True) contactlessPayment: Optional[Union[List[Union[StrictBool, 'Boolean', str]], StrictBool, 'Boolean', str]] = Field( default=None, description="A secure method for consumers to purchase products or services via debit, credit or smartcards" "by using RFID or NFC technology.", ) - cashBack: Optional[Union[List[Union[int, float, 'Number', StrictBool, 'Boolean', str]], int, float, 'Number', StrictBool, 'Boolean', str]] = Field( + cashBack: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', StrictBool, 'Boolean', str]], StrictInt, StrictFloat, 'Number', StrictBool, 'Boolean', str]] = Field( default=None, description="A cardholder benefit that pays the cardholder a small percentage of their net expenditures.", ) @@ -32,7 +31,7 @@ class PaymentCard(PaymentMethod, FinancialProduct): default=None, description="A floor limit is the amount of money above which credit card transactions must be authorized.", ) - monthlyMinimumRepaymentAmount: Optional[Union[List[Union[int, float, 'Number', 'MonetaryAmount', str]], int, float, 'Number', 'MonetaryAmount', str]] = Field( + monthlyMinimumRepaymentAmount: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]], StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]] = Field( default=None, description="The minimum payment is the lowest amount of money that one is required to pay on a credit" "card statement each month.", diff --git a/pydantic_schemaorg/PaymentChargeSpecification.py b/pydantic_schemaorg/PaymentChargeSpecification.py index b2648e67..557e2524 100644 --- a/pydantic_schemaorg/PaymentChargeSpecification.py +++ b/pydantic_schemaorg/PaymentChargeSpecification.py @@ -14,7 +14,7 @@ class PaymentChargeSpecification(PriceSpecification): See: https://schema.org/PaymentChargeSpecification Model depth: 5 """ - type_: str = Field(default="PaymentChargeSpecification", alias='@type', constant=True) + type_: str = Field(default="PaymentChargeSpecification", alias='@type', const=True) appliesToDeliveryMethod: Optional[Union[List[Union['DeliveryMethod', str]], 'DeliveryMethod', str]] = Field( default=None, description="The delivery method(s) to which the delivery charge or payment charge specification" diff --git a/pydantic_schemaorg/PaymentComplete.py b/pydantic_schemaorg/PaymentComplete.py index 9cfdb953..516b7cca 100644 --- a/pydantic_schemaorg/PaymentComplete.py +++ b/pydantic_schemaorg/PaymentComplete.py @@ -11,5 +11,5 @@ class PaymentComplete(PaymentStatusType): See: https://schema.org/PaymentComplete Model depth: 6 """ - type_: str = Field(default="PaymentComplete", alias='@type', constant=True) + type_: str = Field(default="PaymentComplete", alias='@type', const=True) diff --git a/pydantic_schemaorg/PaymentDeclined.py b/pydantic_schemaorg/PaymentDeclined.py index ce9b3ad0..d1bee6a1 100644 --- a/pydantic_schemaorg/PaymentDeclined.py +++ b/pydantic_schemaorg/PaymentDeclined.py @@ -11,5 +11,5 @@ class PaymentDeclined(PaymentStatusType): See: https://schema.org/PaymentDeclined Model depth: 6 """ - type_: str = Field(default="PaymentDeclined", alias='@type', constant=True) + type_: str = Field(default="PaymentDeclined", alias='@type', const=True) diff --git a/pydantic_schemaorg/PaymentDue.py b/pydantic_schemaorg/PaymentDue.py index 6e2731fa..9624250b 100644 --- a/pydantic_schemaorg/PaymentDue.py +++ b/pydantic_schemaorg/PaymentDue.py @@ -11,5 +11,5 @@ class PaymentDue(PaymentStatusType): See: https://schema.org/PaymentDue Model depth: 6 """ - type_: str = Field(default="PaymentDue", alias='@type', constant=True) + type_: str = Field(default="PaymentDue", alias='@type', const=True) diff --git a/pydantic_schemaorg/PaymentMethod.py b/pydantic_schemaorg/PaymentMethod.py index 700b9aa3..746f2269 100644 --- a/pydantic_schemaorg/PaymentMethod.py +++ b/pydantic_schemaorg/PaymentMethod.py @@ -18,5 +18,5 @@ class PaymentMethod(Enumeration): See: https://schema.org/PaymentMethod Model depth: 4 """ - type_: str = Field(default="PaymentMethod", alias='@type', constant=True) + type_: str = Field(default="PaymentMethod", alias='@type', const=True) diff --git a/pydantic_schemaorg/PaymentPastDue.py b/pydantic_schemaorg/PaymentPastDue.py index 8fc6d8f1..d7a03faa 100644 --- a/pydantic_schemaorg/PaymentPastDue.py +++ b/pydantic_schemaorg/PaymentPastDue.py @@ -11,5 +11,5 @@ class PaymentPastDue(PaymentStatusType): See: https://schema.org/PaymentPastDue Model depth: 6 """ - type_: str = Field(default="PaymentPastDue", alias='@type', constant=True) + type_: str = Field(default="PaymentPastDue", alias='@type', const=True) diff --git a/pydantic_schemaorg/PaymentService.py b/pydantic_schemaorg/PaymentService.py index 5bc0944d..c46e40b1 100644 --- a/pydantic_schemaorg/PaymentService.py +++ b/pydantic_schemaorg/PaymentService.py @@ -11,5 +11,5 @@ class PaymentService(FinancialProduct): See: https://schema.org/PaymentService Model depth: 5 """ - type_: str = Field(default="PaymentService", alias='@type', constant=True) + type_: str = Field(default="PaymentService", alias='@type', const=True) diff --git a/pydantic_schemaorg/PaymentStatusType.py b/pydantic_schemaorg/PaymentStatusType.py index cebc8366..abb4a85e 100644 --- a/pydantic_schemaorg/PaymentStatusType.py +++ b/pydantic_schemaorg/PaymentStatusType.py @@ -11,5 +11,5 @@ class PaymentStatusType(StatusEnumeration): See: https://schema.org/PaymentStatusType Model depth: 5 """ - type_: str = Field(default="PaymentStatusType", alias='@type', constant=True) + type_: str = Field(default="PaymentStatusType", alias='@type', const=True) diff --git a/pydantic_schemaorg/Pediatric.py b/pydantic_schemaorg/Pediatric.py index 07ad0a8b..edfdad34 100644 --- a/pydantic_schemaorg/Pediatric.py +++ b/pydantic_schemaorg/Pediatric.py @@ -13,5 +13,5 @@ class Pediatric(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Pediatric Model depth: 5 """ - type_: str = Field(default="Pediatric", alias='@type', constant=True) + type_: str = Field(default="Pediatric", alias='@type', const=True) diff --git a/pydantic_schemaorg/PeopleAudience.py b/pydantic_schemaorg/PeopleAudience.py index 27ca865a..72dde552 100644 --- a/pydantic_schemaorg/PeopleAudience.py +++ b/pydantic_schemaorg/PeopleAudience.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -15,7 +15,7 @@ class PeopleAudience(Audience): See: https://schema.org/PeopleAudience Model depth: 4 """ - type_: str = Field(default="PeopleAudience", alias='@type', constant=True) + type_: str = Field(default="PeopleAudience", alias='@type', const=True) suggestedGender: Optional[Union[List[Union[str, 'Text', 'GenderType']], str, 'Text', 'GenderType']] = Field( default=None, description="The suggested gender of the intended person or audience, for example \"male\", \"female\"," @@ -30,11 +30,11 @@ class PeopleAudience(Audience): description="The age or age range for the intended audience or person, for example 3-12 months for infants," "1-5 years for toddlers.", ) - suggestedMaxAge: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + suggestedMaxAge: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Maximum recommended age in years for the audience or user.", ) - suggestedMinAge: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + suggestedMinAge: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Minimum recommended age in years for the audience or user.", ) diff --git a/pydantic_schemaorg/PercutaneousProcedure.py b/pydantic_schemaorg/PercutaneousProcedure.py index 2cd207f3..7928df86 100644 --- a/pydantic_schemaorg/PercutaneousProcedure.py +++ b/pydantic_schemaorg/PercutaneousProcedure.py @@ -13,5 +13,5 @@ class PercutaneousProcedure(MedicalProcedureType): See: https://schema.org/PercutaneousProcedure Model depth: 6 """ - type_: str = Field(default="PercutaneousProcedure", alias='@type', constant=True) + type_: str = Field(default="PercutaneousProcedure", alias='@type', const=True) diff --git a/pydantic_schemaorg/PerformAction.py b/pydantic_schemaorg/PerformAction.py index 7d7b8520..b7cb13b7 100644 --- a/pydantic_schemaorg/PerformAction.py +++ b/pydantic_schemaorg/PerformAction.py @@ -14,7 +14,7 @@ class PerformAction(PlayAction): See: https://schema.org/PerformAction Model depth: 4 """ - type_: str = Field(default="PerformAction", alias='@type', constant=True) + type_: str = Field(default="PerformAction", alias='@type', const=True) entertainmentBusiness: Optional[Union[List[Union['EntertainmentBusiness', str]], 'EntertainmentBusiness', str]] = Field( default=None, description="A sub property of location. The entertainment business where the action occurred.", diff --git a/pydantic_schemaorg/PerformanceRole.py b/pydantic_schemaorg/PerformanceRole.py index ef391005..a29afe91 100644 --- a/pydantic_schemaorg/PerformanceRole.py +++ b/pydantic_schemaorg/PerformanceRole.py @@ -15,7 +15,7 @@ class PerformanceRole(Role): See: https://schema.org/PerformanceRole Model depth: 4 """ - type_: str = Field(default="PerformanceRole", alias='@type', constant=True) + type_: str = Field(default="PerformanceRole", alias='@type', const=True) characterName: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The name of a character played in some acting or performing role, i.e. in a PerformanceRole.", diff --git a/pydantic_schemaorg/PerformingArtsTheater.py b/pydantic_schemaorg/PerformingArtsTheater.py index 2ca79852..984f2bce 100644 --- a/pydantic_schemaorg/PerformingArtsTheater.py +++ b/pydantic_schemaorg/PerformingArtsTheater.py @@ -11,5 +11,5 @@ class PerformingArtsTheater(CivicStructure): See: https://schema.org/PerformingArtsTheater Model depth: 4 """ - type_: str = Field(default="PerformingArtsTheater", alias='@type', constant=True) + type_: str = Field(default="PerformingArtsTheater", alias='@type', const=True) diff --git a/pydantic_schemaorg/PerformingGroup.py b/pydantic_schemaorg/PerformingGroup.py index f96e4f4f..67b5d3eb 100644 --- a/pydantic_schemaorg/PerformingGroup.py +++ b/pydantic_schemaorg/PerformingGroup.py @@ -11,5 +11,5 @@ class PerformingGroup(Organization): See: https://schema.org/PerformingGroup Model depth: 3 """ - type_: str = Field(default="PerformingGroup", alias='@type', constant=True) + type_: str = Field(default="PerformingGroup", alias='@type', const=True) diff --git a/pydantic_schemaorg/Periodical.py b/pydantic_schemaorg/Periodical.py index aed95107..81f99f6c 100644 --- a/pydantic_schemaorg/Periodical.py +++ b/pydantic_schemaorg/Periodical.py @@ -13,5 +13,5 @@ class Periodical(CreativeWorkSeries): See: https://schema.org/Periodical Model depth: 4 """ - type_: str = Field(default="Periodical", alias='@type', constant=True) + type_: str = Field(default="Periodical", alias='@type', const=True) diff --git a/pydantic_schemaorg/Permit.py b/pydantic_schemaorg/Permit.py index ac58744e..2dbbf0f8 100644 --- a/pydantic_schemaorg/Permit.py +++ b/pydantic_schemaorg/Permit.py @@ -15,7 +15,7 @@ class Permit(Intangible): See: https://schema.org/Permit Model depth: 3 """ - type_: str = Field(default="Permit", alias='@type', constant=True) + type_: str = Field(default="Permit", alias='@type', const=True) issuedThrough: Optional[Union[List[Union['Service', str]], 'Service', str]] = Field( default=None, description="The service through with the permit was granted.", diff --git a/pydantic_schemaorg/Person.py b/pydantic_schemaorg/Person.py index c7a5684d..0124e0ac 100644 --- a/pydantic_schemaorg/Person.py +++ b/pydantic_schemaorg/Person.py @@ -16,7 +16,7 @@ class Person(Thing): See: https://schema.org/Person Model depth: 2 """ - type_: str = Field(default="Person", alias='@type', constant=True) + type_: str = Field(default="Person", alias='@type', const=True) contactPoint: Optional[Union[List[Union['ContactPoint', str]], 'ContactPoint', str]] = Field( default=None, description="A contact point for a person or organization.", @@ -41,11 +41,11 @@ class Person(Thing): default=None, description="A contact location for a person's place of work.", ) - alumniOf: Optional[Union[List[Union['Organization', 'EducationalOrganization', str]], 'Organization', 'EducationalOrganization', str]] = Field( + alumniOf: Optional[Union[List[Union['EducationalOrganization', 'Organization', str]], 'EducationalOrganization', 'Organization', str]] = Field( default=None, description="An organization that the person is an alumni of.", ) - funder: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + funder: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A person or organization that supports (sponsors) something through some kind of financial" "contribution.", @@ -66,7 +66,7 @@ class Person(Thing): "We do not distinguish skill levels or reading/writing/speaking/signing here. Use" "language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).", ) - netWorth: Optional[Union[List[Union['PriceSpecification', 'MonetaryAmount', str]], 'PriceSpecification', 'MonetaryAmount', str]] = Field( + netWorth: Optional[Union[List[Union['MonetaryAmount', 'PriceSpecification', str]], 'MonetaryAmount', 'PriceSpecification', str]] = Field( default=None, description="The total financial value of the person as calculated by subtracting assets from liabilities.", ) @@ -206,7 +206,7 @@ class Person(Thing): default=None, description="Date of birth.", ) - sponsor: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + sponsor: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A person or organization that supports a thing through a pledge, promise, or financial" "contribution. e.g. a sponsor of a Medical Study or a corporate sponsor of an event.", @@ -300,12 +300,12 @@ class Person(Thing): from pydantic_schemaorg.DefinedTerm import DefinedTerm from pydantic_schemaorg.Country import Country from pydantic_schemaorg.Place import Place - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.EducationalOrganization import EducationalOrganization + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.QuantitativeValue import QuantitativeValue from pydantic_schemaorg.Language import Language - from pydantic_schemaorg.PriceSpecification import PriceSpecification from pydantic_schemaorg.MonetaryAmount import MonetaryAmount + from pydantic_schemaorg.PriceSpecification import PriceSpecification from pydantic_schemaorg.URL import URL from pydantic_schemaorg.CreativeWork import CreativeWork from pydantic_schemaorg.GenderType import GenderType diff --git a/pydantic_schemaorg/PetStore.py b/pydantic_schemaorg/PetStore.py index 14114d24..4492b609 100644 --- a/pydantic_schemaorg/PetStore.py +++ b/pydantic_schemaorg/PetStore.py @@ -11,5 +11,5 @@ class PetStore(Store): See: https://schema.org/PetStore Model depth: 5 """ - type_: str = Field(default="PetStore", alias='@type', constant=True) + type_: str = Field(default="PetStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/Pharmacy.py b/pydantic_schemaorg/Pharmacy.py index a25abf5d..6c12a452 100644 --- a/pydantic_schemaorg/Pharmacy.py +++ b/pydantic_schemaorg/Pharmacy.py @@ -12,5 +12,5 @@ class Pharmacy(MedicalBusiness, MedicalOrganization): See: https://schema.org/Pharmacy Model depth: 4 """ - type_: str = Field(default="Pharmacy", alias='@type', constant=True) + type_: str = Field(default="Pharmacy", alias='@type', const=True) diff --git a/pydantic_schemaorg/PharmacySpecialty.py b/pydantic_schemaorg/PharmacySpecialty.py index 27ed3e8a..c026b5cd 100644 --- a/pydantic_schemaorg/PharmacySpecialty.py +++ b/pydantic_schemaorg/PharmacySpecialty.py @@ -11,5 +11,5 @@ class PharmacySpecialty(MedicalSpecialty): See: https://schema.org/PharmacySpecialty Model depth: 6 """ - type_: str = Field(default="PharmacySpecialty", alias='@type', constant=True) + type_: str = Field(default="PharmacySpecialty", alias='@type', const=True) diff --git a/pydantic_schemaorg/Photograph.py b/pydantic_schemaorg/Photograph.py index 07d909d5..1b84e88b 100644 --- a/pydantic_schemaorg/Photograph.py +++ b/pydantic_schemaorg/Photograph.py @@ -11,5 +11,5 @@ class Photograph(CreativeWork): See: https://schema.org/Photograph Model depth: 3 """ - type_: str = Field(default="Photograph", alias='@type', constant=True) + type_: str = Field(default="Photograph", alias='@type', const=True) diff --git a/pydantic_schemaorg/PhotographAction.py b/pydantic_schemaorg/PhotographAction.py index 8b7441e2..ac7b84e9 100644 --- a/pydantic_schemaorg/PhotographAction.py +++ b/pydantic_schemaorg/PhotographAction.py @@ -11,5 +11,5 @@ class PhotographAction(CreateAction): See: https://schema.org/PhotographAction Model depth: 4 """ - type_: str = Field(default="PhotographAction", alias='@type', constant=True) + type_: str = Field(default="PhotographAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/PhysicalActivity.py b/pydantic_schemaorg/PhysicalActivity.py index 9a4f34af..395573bd 100644 --- a/pydantic_schemaorg/PhysicalActivity.py +++ b/pydantic_schemaorg/PhysicalActivity.py @@ -17,12 +17,12 @@ class PhysicalActivity(LifestyleModification): See: https://schema.org/PhysicalActivity Model depth: 4 """ - type_: str = Field(default="PhysicalActivity", alias='@type', constant=True) + type_: str = Field(default="PhysicalActivity", alias='@type', const=True) epidemiology: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The characteristics of associated patients, such as age, gender, race etc.", ) - category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']], AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']] = Field( + category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']], AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']] = Field( default=None, description="A category for the item. Greater signs or slashes can be used to informally indicate a" "category hierarchy.", @@ -32,7 +32,7 @@ class PhysicalActivity(LifestyleModification): description="Changes in the normal mechanical, physical, and biochemical functions that are associated" "with this activity or condition.", ) - associatedAnatomy: Optional[Union[List[Union['SuperficialAnatomy', 'AnatomicalStructure', 'AnatomicalSystem', str]], 'SuperficialAnatomy', 'AnatomicalStructure', 'AnatomicalSystem', str]] = Field( + associatedAnatomy: Optional[Union[List[Union['AnatomicalStructure', 'AnatomicalSystem', 'SuperficialAnatomy', str]], 'AnatomicalStructure', 'AnatomicalSystem', 'SuperficialAnatomy', str]] = Field( default=None, description="The anatomy of the underlying organ system or structures associated with this entity.", ) @@ -41,8 +41,8 @@ class PhysicalActivity(LifestyleModification): if TYPE_CHECKING: from pydantic_schemaorg.Text import Text from pydantic_schemaorg.URL import URL - from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.PhysicalActivityCategory import PhysicalActivityCategory - from pydantic_schemaorg.SuperficialAnatomy import SuperficialAnatomy + from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.AnatomicalStructure import AnatomicalStructure from pydantic_schemaorg.AnatomicalSystem import AnatomicalSystem + from pydantic_schemaorg.SuperficialAnatomy import SuperficialAnatomy diff --git a/pydantic_schemaorg/PhysicalActivityCategory.py b/pydantic_schemaorg/PhysicalActivityCategory.py index 9e58aee2..f08eba5a 100644 --- a/pydantic_schemaorg/PhysicalActivityCategory.py +++ b/pydantic_schemaorg/PhysicalActivityCategory.py @@ -11,5 +11,5 @@ class PhysicalActivityCategory(Enumeration): See: https://schema.org/PhysicalActivityCategory Model depth: 4 """ - type_: str = Field(default="PhysicalActivityCategory", alias='@type', constant=True) + type_: str = Field(default="PhysicalActivityCategory", alias='@type', const=True) diff --git a/pydantic_schemaorg/PhysicalExam.py b/pydantic_schemaorg/PhysicalExam.py index 9428ae40..963b167e 100644 --- a/pydantic_schemaorg/PhysicalExam.py +++ b/pydantic_schemaorg/PhysicalExam.py @@ -12,5 +12,5 @@ class PhysicalExam(MedicalEnumeration, MedicalProcedure): See: https://schema.org/PhysicalExam Model depth: 4 """ - type_: str = Field(default="PhysicalExam", alias='@type', constant=True) + type_: str = Field(default="PhysicalExam", alias='@type', const=True) diff --git a/pydantic_schemaorg/PhysicalTherapy.py b/pydantic_schemaorg/PhysicalTherapy.py index 7f1e6a93..b6d5f4f4 100644 --- a/pydantic_schemaorg/PhysicalTherapy.py +++ b/pydantic_schemaorg/PhysicalTherapy.py @@ -12,5 +12,5 @@ class PhysicalTherapy(MedicalTherapy): See: https://schema.org/PhysicalTherapy Model depth: 6 """ - type_: str = Field(default="PhysicalTherapy", alias='@type', constant=True) + type_: str = Field(default="PhysicalTherapy", alias='@type', const=True) diff --git a/pydantic_schemaorg/Physician.py b/pydantic_schemaorg/Physician.py index 91bc7e97..9912286c 100644 --- a/pydantic_schemaorg/Physician.py +++ b/pydantic_schemaorg/Physician.py @@ -15,7 +15,7 @@ class Physician(MedicalBusiness, MedicalOrganization): See: https://schema.org/Physician Model depth: 4 """ - type_: str = Field(default="Physician", alias='@type', constant=True) + type_: str = Field(default="Physician", alias='@type', const=True) medicalSpecialty: Optional[Union[List[Union['MedicalSpecialty', str]], 'MedicalSpecialty', str]] = Field( default=None, description="A medical specialty of the provider.", @@ -24,7 +24,7 @@ class Physician(MedicalBusiness, MedicalOrganization): default=None, description="A hospital with which the physician or office is affiliated.", ) - availableService: Optional[Union[List[Union['MedicalProcedure', 'MedicalTest', 'MedicalTherapy', str]], 'MedicalProcedure', 'MedicalTest', 'MedicalTherapy', str]] = Field( + availableService: Optional[Union[List[Union['MedicalTherapy', 'MedicalProcedure', 'MedicalTest', str]], 'MedicalTherapy', 'MedicalProcedure', 'MedicalTest', str]] = Field( default=None, description="A medical service available from this provider.", ) @@ -33,6 +33,6 @@ class Physician(MedicalBusiness, MedicalOrganization): if TYPE_CHECKING: from pydantic_schemaorg.MedicalSpecialty import MedicalSpecialty from pydantic_schemaorg.Hospital import Hospital + from pydantic_schemaorg.MedicalTherapy import MedicalTherapy from pydantic_schemaorg.MedicalProcedure import MedicalProcedure from pydantic_schemaorg.MedicalTest import MedicalTest - from pydantic_schemaorg.MedicalTherapy import MedicalTherapy diff --git a/pydantic_schemaorg/Physiotherapy.py b/pydantic_schemaorg/Physiotherapy.py index f6e75e04..57592192 100644 --- a/pydantic_schemaorg/Physiotherapy.py +++ b/pydantic_schemaorg/Physiotherapy.py @@ -13,5 +13,5 @@ class Physiotherapy(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Physiotherapy Model depth: 5 """ - type_: str = Field(default="Physiotherapy", alias='@type', constant=True) + type_: str = Field(default="Physiotherapy", alias='@type', const=True) diff --git a/pydantic_schemaorg/Place.py b/pydantic_schemaorg/Place.py index 710fe66d..32f61fe4 100644 --- a/pydantic_schemaorg/Place.py +++ b/pydantic_schemaorg/Place.py @@ -2,8 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from pydantic import AnyUrl, StrictBool -from decimal import Decimal +from pydantic import AnyUrl, StrictBool, StrictInt, StrictFloat from pydantic import Field @@ -16,7 +15,7 @@ class Place(Thing): See: https://schema.org/Place Model depth: 2 """ - type_: str = Field(default="Place", alias='@type', constant=True) + type_: str = Field(default="Place", alias='@type', const=True) geo: Optional[Union[List[Union['GeoCoordinates', 'GeoShape', str]], 'GeoCoordinates', 'GeoShape', str]] = Field( default=None, description="The geo coordinates of the place.", @@ -68,7 +67,7 @@ class Place(Thing): default=None, description="The total number of individuals that may attend an event or venue.", ) - photo: Optional[Union[List[Union['Photograph', 'ImageObject', str]], 'Photograph', 'ImageObject', str]] = Field( + photo: Optional[Union[List[Union['ImageObject', 'Photograph', str]], 'ImageObject', 'Photograph', str]] = Field( default=None, description="A photograph of this place.", ) @@ -85,7 +84,7 @@ class Place(Thing): description="The International Standard of Industrial Classification of All Economic Activities" "(ISIC), Revision 4 code for a particular organization, business person, or place.", ) - longitude: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + longitude: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).", ) @@ -142,7 +141,7 @@ class Place(Thing): description="Represents a relationship between two geometries (or the places they represent), relating" "a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).", ) - photos: Optional[Union[List[Union['Photograph', 'ImageObject', str]], 'Photograph', 'ImageObject', str]] = Field( + photos: Optional[Union[List[Union['ImageObject', 'Photograph', str]], 'ImageObject', 'Photograph', str]] = Field( default=None, description="Photographs of this place.", ) @@ -168,7 +167,7 @@ class Place(Thing): default=None, description="An associated logo.", ) - latitude: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + latitude: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).", ) @@ -245,8 +244,8 @@ class Place(Thing): from pydantic_schemaorg.OpeningHoursSpecification import OpeningHoursSpecification from pydantic_schemaorg.Text import Text from pydantic_schemaorg.Integer import Integer - from pydantic_schemaorg.Photograph import Photograph from pydantic_schemaorg.ImageObject import ImageObject + from pydantic_schemaorg.Photograph import Photograph from pydantic_schemaorg.AggregateRating import AggregateRating from pydantic_schemaorg.Number import Number from pydantic_schemaorg.LocationFeatureSpecification import LocationFeatureSpecification diff --git a/pydantic_schemaorg/PlaceOfWorship.py b/pydantic_schemaorg/PlaceOfWorship.py index 6c755a43..4991f6c0 100644 --- a/pydantic_schemaorg/PlaceOfWorship.py +++ b/pydantic_schemaorg/PlaceOfWorship.py @@ -11,5 +11,5 @@ class PlaceOfWorship(CivicStructure): See: https://schema.org/PlaceOfWorship Model depth: 4 """ - type_: str = Field(default="PlaceOfWorship", alias='@type', constant=True) + type_: str = Field(default="PlaceOfWorship", alias='@type', const=True) diff --git a/pydantic_schemaorg/PlaceboControlledTrial.py b/pydantic_schemaorg/PlaceboControlledTrial.py index 34f11e1b..50c87e32 100644 --- a/pydantic_schemaorg/PlaceboControlledTrial.py +++ b/pydantic_schemaorg/PlaceboControlledTrial.py @@ -11,5 +11,5 @@ class PlaceboControlledTrial(MedicalTrialDesign): See: https://schema.org/PlaceboControlledTrial Model depth: 6 """ - type_: str = Field(default="PlaceboControlledTrial", alias='@type', constant=True) + type_: str = Field(default="PlaceboControlledTrial", alias='@type', const=True) diff --git a/pydantic_schemaorg/PlanAction.py b/pydantic_schemaorg/PlanAction.py index 74b8e30d..6e8f1481 100644 --- a/pydantic_schemaorg/PlanAction.py +++ b/pydantic_schemaorg/PlanAction.py @@ -16,7 +16,7 @@ class PlanAction(OrganizeAction): See: https://schema.org/PlanAction Model depth: 4 """ - type_: str = Field(default="PlanAction", alias='@type', constant=True) + type_: str = Field(default="PlanAction", alias='@type', const=True) scheduledTime: Optional[Union[List[Union[datetime, 'DateTime', str]], datetime, 'DateTime', str]] = Field( default=None, description="The time the object is scheduled to.", diff --git a/pydantic_schemaorg/PlasticSurgery.py b/pydantic_schemaorg/PlasticSurgery.py index f3321f87..b9a22966 100644 --- a/pydantic_schemaorg/PlasticSurgery.py +++ b/pydantic_schemaorg/PlasticSurgery.py @@ -14,5 +14,5 @@ class PlasticSurgery(MedicalSpecialty, MedicalBusiness): See: https://schema.org/PlasticSurgery Model depth: 5 """ - type_: str = Field(default="PlasticSurgery", alias='@type', constant=True) + type_: str = Field(default="PlasticSurgery", alias='@type', const=True) diff --git a/pydantic_schemaorg/Play.py b/pydantic_schemaorg/Play.py index d0ee60b9..046782f3 100644 --- a/pydantic_schemaorg/Play.py +++ b/pydantic_schemaorg/Play.py @@ -13,5 +13,5 @@ class Play(CreativeWork): See: https://schema.org/Play Model depth: 3 """ - type_: str = Field(default="Play", alias='@type', constant=True) + type_: str = Field(default="Play", alias='@type', const=True) diff --git a/pydantic_schemaorg/PlayAction.py b/pydantic_schemaorg/PlayAction.py index cb43cb4a..3dfaceb4 100644 --- a/pydantic_schemaorg/PlayAction.py +++ b/pydantic_schemaorg/PlayAction.py @@ -19,7 +19,7 @@ class PlayAction(Action): See: https://schema.org/PlayAction Model depth: 3 """ - type_: str = Field(default="PlayAction", alias='@type', constant=True) + type_: str = Field(default="PlayAction", alias='@type', const=True) audience: Optional[Union[List[Union['Audience', str]], 'Audience', str]] = Field( default=None, description="An intended audience, i.e. a group for whom something was created.", diff --git a/pydantic_schemaorg/Playground.py b/pydantic_schemaorg/Playground.py index 42833dc6..eeb32828 100644 --- a/pydantic_schemaorg/Playground.py +++ b/pydantic_schemaorg/Playground.py @@ -11,5 +11,5 @@ class Playground(CivicStructure): See: https://schema.org/Playground Model depth: 4 """ - type_: str = Field(default="Playground", alias='@type', constant=True) + type_: str = Field(default="Playground", alias='@type', const=True) diff --git a/pydantic_schemaorg/Plumber.py b/pydantic_schemaorg/Plumber.py index d981ced7..5867c547 100644 --- a/pydantic_schemaorg/Plumber.py +++ b/pydantic_schemaorg/Plumber.py @@ -11,5 +11,5 @@ class Plumber(HomeAndConstructionBusiness): See: https://schema.org/Plumber Model depth: 5 """ - type_: str = Field(default="Plumber", alias='@type', constant=True) + type_: str = Field(default="Plumber", alias='@type', const=True) diff --git a/pydantic_schemaorg/PodcastEpisode.py b/pydantic_schemaorg/PodcastEpisode.py index 246ab6e1..51d64429 100644 --- a/pydantic_schemaorg/PodcastEpisode.py +++ b/pydantic_schemaorg/PodcastEpisode.py @@ -11,5 +11,5 @@ class PodcastEpisode(Episode): See: https://schema.org/PodcastEpisode Model depth: 4 """ - type_: str = Field(default="PodcastEpisode", alias='@type', constant=True) + type_: str = Field(default="PodcastEpisode", alias='@type', const=True) diff --git a/pydantic_schemaorg/PodcastSeason.py b/pydantic_schemaorg/PodcastSeason.py index 38fe43b5..6070516d 100644 --- a/pydantic_schemaorg/PodcastSeason.py +++ b/pydantic_schemaorg/PodcastSeason.py @@ -12,5 +12,5 @@ class PodcastSeason(CreativeWorkSeason): See: https://schema.org/PodcastSeason Model depth: 4 """ - type_: str = Field(default="PodcastSeason", alias='@type', constant=True) + type_: str = Field(default="PodcastSeason", alias='@type', const=True) diff --git a/pydantic_schemaorg/PodcastSeries.py b/pydantic_schemaorg/PodcastSeries.py index faf7b254..eea13c2e 100644 --- a/pydantic_schemaorg/PodcastSeries.py +++ b/pydantic_schemaorg/PodcastSeries.py @@ -16,7 +16,7 @@ class PodcastSeries(CreativeWorkSeries): See: https://schema.org/PodcastSeries Model depth: 4 """ - type_: str = Field(default="PodcastSeries", alias='@type', constant=True) + type_: str = Field(default="PodcastSeries", alias='@type', const=True) webFeed: Optional[Union[List[Union[AnyUrl, 'URL', 'DataFeed', str]], AnyUrl, 'URL', 'DataFeed', str]] = Field( default=None, description="The URL for a feed, e.g. associated with a podcast series, blog, or series of date-stamped" diff --git a/pydantic_schemaorg/Podiatric.py b/pydantic_schemaorg/Podiatric.py index 30da309c..51583aa0 100644 --- a/pydantic_schemaorg/Podiatric.py +++ b/pydantic_schemaorg/Podiatric.py @@ -13,5 +13,5 @@ class Podiatric(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Podiatric Model depth: 5 """ - type_: str = Field(default="Podiatric", alias='@type', constant=True) + type_: str = Field(default="Podiatric", alias='@type', const=True) diff --git a/pydantic_schemaorg/PoliceStation.py b/pydantic_schemaorg/PoliceStation.py index c80e06e4..55e4f80a 100644 --- a/pydantic_schemaorg/PoliceStation.py +++ b/pydantic_schemaorg/PoliceStation.py @@ -12,5 +12,5 @@ class PoliceStation(EmergencyService, CivicStructure): See: https://schema.org/PoliceStation Model depth: 4 """ - type_: str = Field(default="PoliceStation", alias='@type', constant=True) + type_: str = Field(default="PoliceStation", alias='@type', const=True) diff --git a/pydantic_schemaorg/Pond.py b/pydantic_schemaorg/Pond.py index 80c5c0d9..1df3e1bf 100644 --- a/pydantic_schemaorg/Pond.py +++ b/pydantic_schemaorg/Pond.py @@ -11,5 +11,5 @@ class Pond(BodyOfWater): See: https://schema.org/Pond Model depth: 5 """ - type_: str = Field(default="Pond", alias='@type', constant=True) + type_: str = Field(default="Pond", alias='@type', const=True) diff --git a/pydantic_schemaorg/PostOffice.py b/pydantic_schemaorg/PostOffice.py index b52dce7a..670a1792 100644 --- a/pydantic_schemaorg/PostOffice.py +++ b/pydantic_schemaorg/PostOffice.py @@ -11,5 +11,5 @@ class PostOffice(GovernmentOffice): See: https://schema.org/PostOffice Model depth: 5 """ - type_: str = Field(default="PostOffice", alias='@type', constant=True) + type_: str = Field(default="PostOffice", alias='@type', const=True) diff --git a/pydantic_schemaorg/PostalAddress.py b/pydantic_schemaorg/PostalAddress.py index c07d9970..004a7a61 100644 --- a/pydantic_schemaorg/PostalAddress.py +++ b/pydantic_schemaorg/PostalAddress.py @@ -14,7 +14,7 @@ class PostalAddress(ContactPoint): See: https://schema.org/PostalAddress Model depth: 5 """ - type_: str = Field(default="PostalAddress", alias='@type', constant=True) + type_: str = Field(default="PostalAddress", alias='@type', const=True) postalCode: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The postal code. For example, 94043.", diff --git a/pydantic_schemaorg/PostalCodeRangeSpecification.py b/pydantic_schemaorg/PostalCodeRangeSpecification.py index f48c3b4f..3706e4ad 100644 --- a/pydantic_schemaorg/PostalCodeRangeSpecification.py +++ b/pydantic_schemaorg/PostalCodeRangeSpecification.py @@ -15,7 +15,7 @@ class PostalCodeRangeSpecification(StructuredValue): See: https://schema.org/PostalCodeRangeSpecification Model depth: 4 """ - type_: str = Field(default="PostalCodeRangeSpecification", alias='@type', constant=True) + type_: str = Field(default="PostalCodeRangeSpecification", alias='@type', const=True) postalCodeEnd: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Last postal code in the range (included). Needs to be after [[postalCodeBegin]].", diff --git a/pydantic_schemaorg/Poster.py b/pydantic_schemaorg/Poster.py index 3239fd00..3de47b59 100644 --- a/pydantic_schemaorg/Poster.py +++ b/pydantic_schemaorg/Poster.py @@ -12,5 +12,5 @@ class Poster(CreativeWork): See: https://schema.org/Poster Model depth: 3 """ - type_: str = Field(default="Poster", alias='@type', constant=True) + type_: str = Field(default="Poster", alias='@type', const=True) diff --git a/pydantic_schemaorg/PotentialActionStatus.py b/pydantic_schemaorg/PotentialActionStatus.py index 25ccadde..4c89d4e9 100644 --- a/pydantic_schemaorg/PotentialActionStatus.py +++ b/pydantic_schemaorg/PotentialActionStatus.py @@ -11,5 +11,5 @@ class PotentialActionStatus(ActionStatusType): See: https://schema.org/PotentialActionStatus Model depth: 6 """ - type_: str = Field(default="PotentialActionStatus", alias='@type', constant=True) + type_: str = Field(default="PotentialActionStatus", alias='@type', const=True) diff --git a/pydantic_schemaorg/PreOrder.py b/pydantic_schemaorg/PreOrder.py index 74dd9cf2..b35460b0 100644 --- a/pydantic_schemaorg/PreOrder.py +++ b/pydantic_schemaorg/PreOrder.py @@ -11,5 +11,5 @@ class PreOrder(ItemAvailability): See: https://schema.org/PreOrder Model depth: 5 """ - type_: str = Field(default="PreOrder", alias='@type', constant=True) + type_: str = Field(default="PreOrder", alias='@type', const=True) diff --git a/pydantic_schemaorg/PreOrderAction.py b/pydantic_schemaorg/PreOrderAction.py index b800d1ec..73902a2c 100644 --- a/pydantic_schemaorg/PreOrderAction.py +++ b/pydantic_schemaorg/PreOrderAction.py @@ -11,5 +11,5 @@ class PreOrderAction(TradeAction): See: https://schema.org/PreOrderAction Model depth: 4 """ - type_: str = Field(default="PreOrderAction", alias='@type', constant=True) + type_: str = Field(default="PreOrderAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/PreSale.py b/pydantic_schemaorg/PreSale.py index 5e52543a..4782374e 100644 --- a/pydantic_schemaorg/PreSale.py +++ b/pydantic_schemaorg/PreSale.py @@ -11,5 +11,5 @@ class PreSale(ItemAvailability): See: https://schema.org/PreSale Model depth: 5 """ - type_: str = Field(default="PreSale", alias='@type', constant=True) + type_: str = Field(default="PreSale", alias='@type', const=True) diff --git a/pydantic_schemaorg/PregnancyHealthAspect.py b/pydantic_schemaorg/PregnancyHealthAspect.py index 6f4585ad..7165f3c9 100644 --- a/pydantic_schemaorg/PregnancyHealthAspect.py +++ b/pydantic_schemaorg/PregnancyHealthAspect.py @@ -11,5 +11,5 @@ class PregnancyHealthAspect(HealthAspectEnumeration): See: https://schema.org/PregnancyHealthAspect Model depth: 5 """ - type_: str = Field(default="PregnancyHealthAspect", alias='@type', constant=True) + type_: str = Field(default="PregnancyHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/PrependAction.py b/pydantic_schemaorg/PrependAction.py index b715a00c..24864180 100644 --- a/pydantic_schemaorg/PrependAction.py +++ b/pydantic_schemaorg/PrependAction.py @@ -11,5 +11,5 @@ class PrependAction(InsertAction): See: https://schema.org/PrependAction Model depth: 6 """ - type_: str = Field(default="PrependAction", alias='@type', constant=True) + type_: str = Field(default="PrependAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Preschool.py b/pydantic_schemaorg/Preschool.py index 4a042927..485469f4 100644 --- a/pydantic_schemaorg/Preschool.py +++ b/pydantic_schemaorg/Preschool.py @@ -11,5 +11,5 @@ class Preschool(EducationalOrganization): See: https://schema.org/Preschool Model depth: 4 """ - type_: str = Field(default="Preschool", alias='@type', constant=True) + type_: str = Field(default="Preschool", alias='@type', const=True) diff --git a/pydantic_schemaorg/PrescriptionOnly.py b/pydantic_schemaorg/PrescriptionOnly.py index f9ddee2f..fe66ef4f 100644 --- a/pydantic_schemaorg/PrescriptionOnly.py +++ b/pydantic_schemaorg/PrescriptionOnly.py @@ -11,5 +11,5 @@ class PrescriptionOnly(DrugPrescriptionStatus): See: https://schema.org/PrescriptionOnly Model depth: 6 """ - type_: str = Field(default="PrescriptionOnly", alias='@type', constant=True) + type_: str = Field(default="PrescriptionOnly", alias='@type', const=True) diff --git a/pydantic_schemaorg/PresentationDigitalDocument.py b/pydantic_schemaorg/PresentationDigitalDocument.py index ae11e95d..e5f715bd 100644 --- a/pydantic_schemaorg/PresentationDigitalDocument.py +++ b/pydantic_schemaorg/PresentationDigitalDocument.py @@ -11,5 +11,5 @@ class PresentationDigitalDocument(DigitalDocument): See: https://schema.org/PresentationDigitalDocument Model depth: 4 """ - type_: str = Field(default="PresentationDigitalDocument", alias='@type', constant=True) + type_: str = Field(default="PresentationDigitalDocument", alias='@type', const=True) diff --git a/pydantic_schemaorg/PreventionHealthAspect.py b/pydantic_schemaorg/PreventionHealthAspect.py index c2ac6f72..ced52b21 100644 --- a/pydantic_schemaorg/PreventionHealthAspect.py +++ b/pydantic_schemaorg/PreventionHealthAspect.py @@ -12,5 +12,5 @@ class PreventionHealthAspect(HealthAspectEnumeration): See: https://schema.org/PreventionHealthAspect Model depth: 5 """ - type_: str = Field(default="PreventionHealthAspect", alias='@type', constant=True) + type_: str = Field(default="PreventionHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/PreventionIndication.py b/pydantic_schemaorg/PreventionIndication.py index df6980f6..ea0ccf20 100644 --- a/pydantic_schemaorg/PreventionIndication.py +++ b/pydantic_schemaorg/PreventionIndication.py @@ -11,5 +11,5 @@ class PreventionIndication(MedicalIndication): See: https://schema.org/PreventionIndication Model depth: 4 """ - type_: str = Field(default="PreventionIndication", alias='@type', constant=True) + type_: str = Field(default="PreventionIndication", alias='@type', const=True) diff --git a/pydantic_schemaorg/PriceComponentTypeEnumeration.py b/pydantic_schemaorg/PriceComponentTypeEnumeration.py index a1e3d3ca..a1d02e72 100644 --- a/pydantic_schemaorg/PriceComponentTypeEnumeration.py +++ b/pydantic_schemaorg/PriceComponentTypeEnumeration.py @@ -12,5 +12,5 @@ class PriceComponentTypeEnumeration(Enumeration): See: https://schema.org/PriceComponentTypeEnumeration Model depth: 4 """ - type_: str = Field(default="PriceComponentTypeEnumeration", alias='@type', constant=True) + type_: str = Field(default="PriceComponentTypeEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/PriceSpecification.py b/pydantic_schemaorg/PriceSpecification.py index 07beebd4..32b88e18 100644 --- a/pydantic_schemaorg/PriceSpecification.py +++ b/pydantic_schemaorg/PriceSpecification.py @@ -1,9 +1,8 @@ from __future__ import annotations from typing import TYPE_CHECKING -from pydantic import StrictBool +from pydantic import StrictBool, StrictInt, StrictFloat from typing import List, Optional, Union -from decimal import Decimal from datetime import date, datetime @@ -19,7 +18,7 @@ class PriceSpecification(StructuredValue): See: https://schema.org/PriceSpecification Model depth: 4 """ - type_: str = Field(default="PriceSpecification", alias='@type', constant=True) + type_: str = Field(default="PriceSpecification", alias='@type', const=True) valueAddedTaxIncluded: Optional[Union[List[Union[StrictBool, 'Boolean', str]], StrictBool, 'Boolean', str]] = Field( default=None, description="Specifies whether the applicable value-added tax (VAT) is included in the price specification" @@ -40,7 +39,7 @@ class PriceSpecification(StructuredValue): "for cryptocurrencies e.g. \"BTC\"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)" "(LETS) and other currency types e.g. \"Ithaca HOUR\".", ) - price: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + price: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The offer price of a product, or of a price component when attached to PriceSpecification" "and its subtypes. Usage guidelines: * Use the [[priceCurrency]] property (with standard" @@ -57,11 +56,11 @@ class PriceSpecification(StructuredValue): "0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially" "similiar Unicode symbols.", ) - maxPrice: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + maxPrice: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The highest price if the price is a range.", ) - minPrice: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + minPrice: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The lowest price if the price is a range.", ) diff --git a/pydantic_schemaorg/PriceTypeEnumeration.py b/pydantic_schemaorg/PriceTypeEnumeration.py index 25a24ea5..0bd374f1 100644 --- a/pydantic_schemaorg/PriceTypeEnumeration.py +++ b/pydantic_schemaorg/PriceTypeEnumeration.py @@ -11,5 +11,5 @@ class PriceTypeEnumeration(Enumeration): See: https://schema.org/PriceTypeEnumeration Model depth: 4 """ - type_: str = Field(default="PriceTypeEnumeration", alias='@type', constant=True) + type_: str = Field(default="PriceTypeEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/PrimaryCare.py b/pydantic_schemaorg/PrimaryCare.py index ca99145a..a3534d7e 100644 --- a/pydantic_schemaorg/PrimaryCare.py +++ b/pydantic_schemaorg/PrimaryCare.py @@ -13,5 +13,5 @@ class PrimaryCare(MedicalSpecialty, MedicalBusiness): See: https://schema.org/PrimaryCare Model depth: 5 """ - type_: str = Field(default="PrimaryCare", alias='@type', constant=True) + type_: str = Field(default="PrimaryCare", alias='@type', const=True) diff --git a/pydantic_schemaorg/Prion.py b/pydantic_schemaorg/Prion.py index ec1711c5..bc5095c4 100644 --- a/pydantic_schemaorg/Prion.py +++ b/pydantic_schemaorg/Prion.py @@ -11,5 +11,5 @@ class Prion(InfectiousAgentClass): See: https://schema.org/Prion Model depth: 6 """ - type_: str = Field(default="Prion", alias='@type', constant=True) + type_: str = Field(default="Prion", alias='@type', const=True) diff --git a/pydantic_schemaorg/Product.py b/pydantic_schemaorg/Product.py index fbc508a8..f9d85233 100644 --- a/pydantic_schemaorg/Product.py +++ b/pydantic_schemaorg/Product.py @@ -17,7 +17,7 @@ class Product(Thing): See: https://schema.org/Product Model depth: 2 """ - type_: str = Field(default="Product", alias='@type', constant=True) + type_: str = Field(default="Product", alias='@type', const=True) pattern: Optional[Union[List[Union[str, 'Text', 'DefinedTerm']], str, 'Text', 'DefinedTerm']] = Field( default=None, description="A pattern that something has, for example 'polka dot', 'striped', 'Canadian flag'." @@ -117,7 +117,7 @@ class Product(Thing): description="The brand(s) associated with a product or service, or the brand(s) maintained by an organization" "or business person.", ) - category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']], AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']] = Field( + category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']], AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']] = Field( default=None, description="A category for the item. Greater signs or slashes can be used to informally indicate a" "category hierarchy.", @@ -143,7 +143,7 @@ class Product(Thing): default=None, description="The height of the item.", ) - size: Optional[Union[List[Union[str, 'Text', 'SizeSpecification', 'DefinedTerm', 'QuantitativeValue']], str, 'Text', 'SizeSpecification', 'DefinedTerm', 'QuantitativeValue']] = Field( + size: Optional[Union[List[Union[str, 'Text', 'DefinedTerm', 'SizeSpecification', 'QuantitativeValue']], str, 'Text', 'DefinedTerm', 'SizeSpecification', 'QuantitativeValue']] = Field( default=None, description="A standardized size of a product or creative work, specified either through a simple" "textual string (for example 'XL', '32Wx34L'), a QuantitativeValue with a unitCode," @@ -284,8 +284,8 @@ class Product(Thing): from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Brand import Brand from pydantic_schemaorg.URL import URL - from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.PhysicalActivityCategory import PhysicalActivityCategory + from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.MerchantReturnPolicy import MerchantReturnPolicy from pydantic_schemaorg.EnergyConsumptionDetails import EnergyConsumptionDetails from pydantic_schemaorg.Service import Service diff --git a/pydantic_schemaorg/ProductCollection.py b/pydantic_schemaorg/ProductCollection.py index 208ee8b2..6bf0b4e6 100644 --- a/pydantic_schemaorg/ProductCollection.py +++ b/pydantic_schemaorg/ProductCollection.py @@ -16,7 +16,7 @@ class ProductCollection(Collection, Product): See: https://schema.org/ProductCollection Model depth: 3 """ - type_: str = Field(default="ProductCollection", alias='@type', constant=True) + type_: str = Field(default="ProductCollection", alias='@type', const=True) includesObject: Optional[Union[List[Union['TypeAndQuantityNode', str]], 'TypeAndQuantityNode', str]] = Field( default=None, description="This links to a node or nodes indicating the exact quantity of the products included in" diff --git a/pydantic_schemaorg/ProductGroup.py b/pydantic_schemaorg/ProductGroup.py index bdc96803..e9eff23a 100644 --- a/pydantic_schemaorg/ProductGroup.py +++ b/pydantic_schemaorg/ProductGroup.py @@ -22,7 +22,7 @@ class ProductGroup(Product): See: https://schema.org/ProductGroup Model depth: 3 """ - type_: str = Field(default="ProductGroup", alias='@type', constant=True) + type_: str = Field(default="ProductGroup", alias='@type', const=True) variesBy: Optional[Union[List[Union[str, 'Text', 'DefinedTerm']], str, 'Text', 'DefinedTerm']] = Field( default=None, description="Indicates the property or properties by which the variants in a [[ProductGroup]] vary," diff --git a/pydantic_schemaorg/ProductModel.py b/pydantic_schemaorg/ProductModel.py index 79f0b422..43b188c4 100644 --- a/pydantic_schemaorg/ProductModel.py +++ b/pydantic_schemaorg/ProductModel.py @@ -14,7 +14,7 @@ class ProductModel(Product): See: https://schema.org/ProductModel Model depth: 3 """ - type_: str = Field(default="ProductModel", alias='@type', constant=True) + type_: str = Field(default="ProductModel", alias='@type', const=True) predecessorOf: Optional[Union[List[Union['ProductModel', str]], 'ProductModel', str]] = Field( default=None, description="A pointer from a previous, often discontinued variant of the product to its newer variant.", diff --git a/pydantic_schemaorg/ProfessionalService.py b/pydantic_schemaorg/ProfessionalService.py index 65c92888..59885e7b 100644 --- a/pydantic_schemaorg/ProfessionalService.py +++ b/pydantic_schemaorg/ProfessionalService.py @@ -17,5 +17,5 @@ class ProfessionalService(LocalBusiness): See: https://schema.org/ProfessionalService Model depth: 4 """ - type_: str = Field(default="ProfessionalService", alias='@type', constant=True) + type_: str = Field(default="ProfessionalService", alias='@type', const=True) diff --git a/pydantic_schemaorg/ProfilePage.py b/pydantic_schemaorg/ProfilePage.py index 3cf8cd63..fb6367a4 100644 --- a/pydantic_schemaorg/ProfilePage.py +++ b/pydantic_schemaorg/ProfilePage.py @@ -11,5 +11,5 @@ class ProfilePage(WebPage): See: https://schema.org/ProfilePage Model depth: 4 """ - type_: str = Field(default="ProfilePage", alias='@type', constant=True) + type_: str = Field(default="ProfilePage", alias='@type', const=True) diff --git a/pydantic_schemaorg/PrognosisHealthAspect.py b/pydantic_schemaorg/PrognosisHealthAspect.py index 9cabba18..3355e3a4 100644 --- a/pydantic_schemaorg/PrognosisHealthAspect.py +++ b/pydantic_schemaorg/PrognosisHealthAspect.py @@ -11,5 +11,5 @@ class PrognosisHealthAspect(HealthAspectEnumeration): See: https://schema.org/PrognosisHealthAspect Model depth: 5 """ - type_: str = Field(default="PrognosisHealthAspect", alias='@type', constant=True) + type_: str = Field(default="PrognosisHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/ProgramMembership.py b/pydantic_schemaorg/ProgramMembership.py index c3fe3445..7f69f44f 100644 --- a/pydantic_schemaorg/ProgramMembership.py +++ b/pydantic_schemaorg/ProgramMembership.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -16,22 +16,22 @@ class ProgramMembership(Intangible): See: https://schema.org/ProgramMembership Model depth: 3 """ - type_: str = Field(default="ProgramMembership", alias='@type', constant=True) + type_: str = Field(default="ProgramMembership", alias='@type', const=True) membershipNumber: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A unique identifier for the membership.", ) - membershipPointsEarned: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + membershipPointsEarned: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The number of membership points earned by the member. If necessary, the unitText can" "be used to express the units the points are issued in. (e.g. stars, miles, etc.)", ) - member: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + member: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A member of an Organization or a ProgramMembership. Organizations can be members of" "organizations; ProgramMembership is typically for individuals.", ) - members: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + members: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A member of this organization.", ) @@ -49,5 +49,5 @@ class ProgramMembership(Intangible): from pydantic_schemaorg.Text import Text from pydantic_schemaorg.Number import Number from pydantic_schemaorg.QuantitativeValue import QuantitativeValue - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization diff --git a/pydantic_schemaorg/Project.py b/pydantic_schemaorg/Project.py index 19b26673..b5ebbee5 100644 --- a/pydantic_schemaorg/Project.py +++ b/pydantic_schemaorg/Project.py @@ -13,5 +13,5 @@ class Project(Organization): See: https://schema.org/Project Model depth: 3 """ - type_: str = Field(default="Project", alias='@type', constant=True) + type_: str = Field(default="Project", alias='@type', const=True) diff --git a/pydantic_schemaorg/PronounceableText.py b/pydantic_schemaorg/PronounceableText.py index bb41659a..0a8f28cc 100644 --- a/pydantic_schemaorg/PronounceableText.py +++ b/pydantic_schemaorg/PronounceableText.py @@ -14,7 +14,7 @@ class PronounceableText(Text): See: https://schema.org/PronounceableText Model depth: 6 """ - type_: str = Field(default="PronounceableText", alias='@type', constant=True) + type_: str = Field(default="PronounceableText", alias='@type', const=True) textValue: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Text value being annotated.", diff --git a/pydantic_schemaorg/Property.py b/pydantic_schemaorg/Property.py index b0a931f6..abb10072 100644 --- a/pydantic_schemaorg/Property.py +++ b/pydantic_schemaorg/Property.py @@ -15,7 +15,7 @@ class Property(Intangible): See: https://schema.org/Property Model depth: 3 """ - type_: str = Field(default="Property", alias='@type', constant=True) + type_: str = Field(default="Property", alias='@type', const=True) domainIncludes: Optional[Union[List[Union['Class', str]], 'Class', str]] = Field( default=None, description="Relates a property to a class that is (one of) the type(s) the property is expected to be" diff --git a/pydantic_schemaorg/PropertyValue.py b/pydantic_schemaorg/PropertyValue.py index ecd52bbb..fc348ff6 100644 --- a/pydantic_schemaorg/PropertyValue.py +++ b/pydantic_schemaorg/PropertyValue.py @@ -1,9 +1,8 @@ from __future__ import annotations from typing import TYPE_CHECKING -from pydantic import AnyUrl, StrictBool +from pydantic import AnyUrl, StrictBool, StrictInt, StrictFloat from typing import List, Optional, Union -from decimal import Decimal from pydantic import Field @@ -20,7 +19,7 @@ class PropertyValue(StructuredValue): See: https://schema.org/PropertyValue Model depth: 4 """ - type_: str = Field(default="PropertyValue", alias='@type', constant=True) + type_: str = Field(default="PropertyValue", alias='@type', const=True) measurementTechnique: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text']], AnyUrl, 'URL', str, 'Text']] = Field( default=None, description="A technique or technology used in a [[Dataset]] (or [[DataDownload]], [[DataCatalog]])," @@ -35,7 +34,7 @@ class PropertyValue(StructuredValue): "several [[variableMeasured]] properties recorded for some given data object, use" "a [[PropertyValue]] for each [[variableMeasured]] and attach the corresponding [[measurementTechnique]].", ) - minValue: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + minValue: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The lower value of some characteristic or property.", ) @@ -44,7 +43,7 @@ class PropertyValue(StructuredValue): description="A string or text indicating the unit of measurement. Useful if you cannot provide a standard" "unit code for unitCode.", ) - value: Optional[Union[List[Union[int, float, 'Number', str, 'Text', StrictBool, 'Boolean', 'StructuredValue']], int, float, 'Number', str, 'Text', StrictBool, 'Boolean', 'StructuredValue']] = Field( + value: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text', StrictBool, 'Boolean', 'StructuredValue']], StrictInt, StrictFloat, 'Number', str, 'Text', StrictBool, 'Boolean', 'StructuredValue']] = Field( default=None, description="The value of the quantitative value or property value node. * For [[QuantitativeValue]]" "and [[MonetaryAmount]], the recommended type for values is 'Number'. * For [[PropertyValue]]," @@ -69,11 +68,11 @@ class PropertyValue(StructuredValue): description="The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL." "Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon.", ) - maxValue: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + maxValue: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The upper value of some characteristic or property.", ) - valueReference: Optional[Union[List[Union[str, 'Text', 'StructuredValue', 'DefinedTerm', 'QualitativeValue', 'QuantitativeValue', 'Enumeration', 'MeasurementTypeEnumeration', 'PropertyValue']], str, 'Text', 'StructuredValue', 'DefinedTerm', 'QualitativeValue', 'QuantitativeValue', 'Enumeration', 'MeasurementTypeEnumeration', 'PropertyValue']] = Field( + valueReference: Optional[Union[List[Union[str, 'Text', 'PropertyValue', 'StructuredValue', 'Enumeration', 'MeasurementTypeEnumeration', 'QualitativeValue', 'DefinedTerm', 'QuantitativeValue']], str, 'Text', 'PropertyValue', 'StructuredValue', 'Enumeration', 'MeasurementTypeEnumeration', 'QualitativeValue', 'DefinedTerm', 'QuantitativeValue']] = Field( default=None, description="A secondary value that provides additional information on the original value, e.g." "a reference temperature or a type of measurement.", @@ -86,8 +85,8 @@ class PropertyValue(StructuredValue): from pydantic_schemaorg.Number import Number from pydantic_schemaorg.Boolean import Boolean from pydantic_schemaorg.StructuredValue import StructuredValue - from pydantic_schemaorg.DefinedTerm import DefinedTerm - from pydantic_schemaorg.QualitativeValue import QualitativeValue - from pydantic_schemaorg.QuantitativeValue import QuantitativeValue from pydantic_schemaorg.Enumeration import Enumeration from pydantic_schemaorg.MeasurementTypeEnumeration import MeasurementTypeEnumeration + from pydantic_schemaorg.QualitativeValue import QualitativeValue + from pydantic_schemaorg.DefinedTerm import DefinedTerm + from pydantic_schemaorg.QuantitativeValue import QuantitativeValue diff --git a/pydantic_schemaorg/PropertyValueSpecification.py b/pydantic_schemaorg/PropertyValueSpecification.py index d5c13caf..24886b58 100644 --- a/pydantic_schemaorg/PropertyValueSpecification.py +++ b/pydantic_schemaorg/PropertyValueSpecification.py @@ -1,9 +1,8 @@ from __future__ import annotations from typing import TYPE_CHECKING -from pydantic import StrictBool +from pydantic import StrictBool, StrictInt, StrictFloat from typing import List, Optional, Union -from decimal import Decimal from pydantic import Field @@ -16,12 +15,12 @@ class PropertyValueSpecification(Intangible): See: https://schema.org/PropertyValueSpecification Model depth: 3 """ - type_: str = Field(default="PropertyValueSpecification", alias='@type', constant=True) + type_: str = Field(default="PropertyValueSpecification", alias='@type', const=True) multipleValues: Optional[Union[List[Union[StrictBool, 'Boolean', str]], StrictBool, 'Boolean', str]] = Field( default=None, description="Whether multiple values are allowed for the property. Default is false.", ) - valueMaxLength: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + valueMaxLength: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Specifies the allowed range for number of characters in a literal value.", ) @@ -30,7 +29,7 @@ class PropertyValueSpecification(Intangible): description="Whether or not a property is mutable. Default is false. Specifying this for a property" "that also has a value makes it act similar to a \"hidden\" input in an HTML form.", ) - valueMinLength: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + valueMinLength: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Specifies the minimum allowed range for number of characters in a literal value.", ) @@ -42,7 +41,7 @@ class PropertyValueSpecification(Intangible): default=None, description="Whether the property must be filled in to complete the action. Default is false.", ) - minValue: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + minValue: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The lower value of some characteristic or property.", ) @@ -51,12 +50,12 @@ class PropertyValueSpecification(Intangible): description="Indicates the name of the PropertyValueSpecification to be used in URL templates and" "form encoding in a manner analogous to HTML's input@name.", ) - stepValue: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + stepValue: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The stepValue attribute indicates the granularity that is expected (and required)" "of the value in a PropertyValueSpecification.", ) - maxValue: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + maxValue: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The upper value of some characteristic or property.", ) diff --git a/pydantic_schemaorg/Protein.py b/pydantic_schemaorg/Protein.py index 4575f5c0..1e0dd11d 100644 --- a/pydantic_schemaorg/Protein.py +++ b/pydantic_schemaorg/Protein.py @@ -19,7 +19,7 @@ class Protein(BioChemEntity): See: https://schema.org/Protein Model depth: 3 """ - type_: str = Field(default="Protein", alias='@type', constant=True) + type_: str = Field(default="Protein", alias='@type', const=True) hasBioPolymerSequence: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A symbolic representation of a BioChemEnity. For example, a nucleotide sequence of" diff --git a/pydantic_schemaorg/Protozoa.py b/pydantic_schemaorg/Protozoa.py index 91e2b72e..cff2e4f6 100644 --- a/pydantic_schemaorg/Protozoa.py +++ b/pydantic_schemaorg/Protozoa.py @@ -11,5 +11,5 @@ class Protozoa(InfectiousAgentClass): See: https://schema.org/Protozoa Model depth: 6 """ - type_: str = Field(default="Protozoa", alias='@type', constant=True) + type_: str = Field(default="Protozoa", alias='@type', const=True) diff --git a/pydantic_schemaorg/Psychiatric.py b/pydantic_schemaorg/Psychiatric.py index 654ae8cf..50942790 100644 --- a/pydantic_schemaorg/Psychiatric.py +++ b/pydantic_schemaorg/Psychiatric.py @@ -13,5 +13,5 @@ class Psychiatric(MedicalSpecialty, MedicalBusiness): See: https://schema.org/Psychiatric Model depth: 5 """ - type_: str = Field(default="Psychiatric", alias='@type', constant=True) + type_: str = Field(default="Psychiatric", alias='@type', const=True) diff --git a/pydantic_schemaorg/PsychologicalTreatment.py b/pydantic_schemaorg/PsychologicalTreatment.py index b0063b8e..b788aec0 100644 --- a/pydantic_schemaorg/PsychologicalTreatment.py +++ b/pydantic_schemaorg/PsychologicalTreatment.py @@ -12,5 +12,5 @@ class PsychologicalTreatment(TherapeuticProcedure): See: https://schema.org/PsychologicalTreatment Model depth: 5 """ - type_: str = Field(default="PsychologicalTreatment", alias='@type', constant=True) + type_: str = Field(default="PsychologicalTreatment", alias='@type', const=True) diff --git a/pydantic_schemaorg/PublicHealth.py b/pydantic_schemaorg/PublicHealth.py index 28475388..4ad1cda9 100644 --- a/pydantic_schemaorg/PublicHealth.py +++ b/pydantic_schemaorg/PublicHealth.py @@ -13,5 +13,5 @@ class PublicHealth(MedicalSpecialty, MedicalBusiness): See: https://schema.org/PublicHealth Model depth: 5 """ - type_: str = Field(default="PublicHealth", alias='@type', constant=True) + type_: str = Field(default="PublicHealth", alias='@type', const=True) diff --git a/pydantic_schemaorg/PublicHolidays.py b/pydantic_schemaorg/PublicHolidays.py index 5c0ba215..a07e9717 100644 --- a/pydantic_schemaorg/PublicHolidays.py +++ b/pydantic_schemaorg/PublicHolidays.py @@ -15,5 +15,5 @@ class PublicHolidays(DayOfWeek): See: https://schema.org/PublicHolidays Model depth: 5 """ - type_: str = Field(default="PublicHolidays", alias='@type', constant=True) + type_: str = Field(default="PublicHolidays", alias='@type', const=True) diff --git a/pydantic_schemaorg/PublicSwimmingPool.py b/pydantic_schemaorg/PublicSwimmingPool.py index c469366e..7ce7c9ad 100644 --- a/pydantic_schemaorg/PublicSwimmingPool.py +++ b/pydantic_schemaorg/PublicSwimmingPool.py @@ -11,5 +11,5 @@ class PublicSwimmingPool(SportsActivityLocation): See: https://schema.org/PublicSwimmingPool Model depth: 5 """ - type_: str = Field(default="PublicSwimmingPool", alias='@type', constant=True) + type_: str = Field(default="PublicSwimmingPool", alias='@type', const=True) diff --git a/pydantic_schemaorg/PublicToilet.py b/pydantic_schemaorg/PublicToilet.py index 8233db75..c844fbfc 100644 --- a/pydantic_schemaorg/PublicToilet.py +++ b/pydantic_schemaorg/PublicToilet.py @@ -13,5 +13,5 @@ class PublicToilet(CivicStructure): See: https://schema.org/PublicToilet Model depth: 4 """ - type_: str = Field(default="PublicToilet", alias='@type', constant=True) + type_: str = Field(default="PublicToilet", alias='@type', const=True) diff --git a/pydantic_schemaorg/PublicationEvent.py b/pydantic_schemaorg/PublicationEvent.py index 737cd35e..93004d76 100644 --- a/pydantic_schemaorg/PublicationEvent.py +++ b/pydantic_schemaorg/PublicationEvent.py @@ -17,8 +17,8 @@ class PublicationEvent(Event): See: https://schema.org/PublicationEvent Model depth: 3 """ - type_: str = Field(default="PublicationEvent", alias='@type', constant=True) - publishedBy: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + type_: str = Field(default="PublicationEvent", alias='@type', const=True) + publishedBy: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="An agent associated with the publication event.", ) @@ -33,7 +33,7 @@ class PublicationEvent(Event): if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.BroadcastService import BroadcastService from pydantic_schemaorg.Boolean import Boolean diff --git a/pydantic_schemaorg/PublicationIssue.py b/pydantic_schemaorg/PublicationIssue.py index 89f44e66..57edd857 100644 --- a/pydantic_schemaorg/PublicationIssue.py +++ b/pydantic_schemaorg/PublicationIssue.py @@ -16,7 +16,7 @@ class PublicationIssue(CreativeWork): See: https://schema.org/PublicationIssue Model depth: 3 """ - type_: str = Field(default="PublicationIssue", alias='@type', constant=True) + type_: str = Field(default="PublicationIssue", alias='@type', const=True) issueNumber: Optional[Union[List[Union[int, 'Integer', str, 'Text']], int, 'Integer', str, 'Text']] = Field( default=None, description="Identifies the issue of publication; for example, \"iii\" or \"2\".", diff --git a/pydantic_schemaorg/PublicationVolume.py b/pydantic_schemaorg/PublicationVolume.py index d9f85861..610f3303 100644 --- a/pydantic_schemaorg/PublicationVolume.py +++ b/pydantic_schemaorg/PublicationVolume.py @@ -15,7 +15,7 @@ class PublicationVolume(CreativeWork): See: https://schema.org/PublicationVolume Model depth: 3 """ - type_: str = Field(default="PublicationVolume", alias='@type', constant=True) + type_: str = Field(default="PublicationVolume", alias='@type', const=True) pageStart: Optional[Union[List[Union[int, 'Integer', str, 'Text']], int, 'Integer', str, 'Text']] = Field( default=None, description="The page on which the work starts; for example \"135\" or \"xiii\".", diff --git a/pydantic_schemaorg/Pulmonary.py b/pydantic_schemaorg/Pulmonary.py index a221fdc4..6ec0ffd7 100644 --- a/pydantic_schemaorg/Pulmonary.py +++ b/pydantic_schemaorg/Pulmonary.py @@ -12,5 +12,5 @@ class Pulmonary(MedicalSpecialty): See: https://schema.org/Pulmonary Model depth: 6 """ - type_: str = Field(default="Pulmonary", alias='@type', constant=True) + type_: str = Field(default="Pulmonary", alias='@type', const=True) diff --git a/pydantic_schemaorg/QAPage.py b/pydantic_schemaorg/QAPage.py index e7288f6e..70a91989 100644 --- a/pydantic_schemaorg/QAPage.py +++ b/pydantic_schemaorg/QAPage.py @@ -12,5 +12,5 @@ class QAPage(WebPage): See: https://schema.org/QAPage Model depth: 4 """ - type_: str = Field(default="QAPage", alias='@type', constant=True) + type_: str = Field(default="QAPage", alias='@type', const=True) diff --git a/pydantic_schemaorg/QualitativeValue.py b/pydantic_schemaorg/QualitativeValue.py index b0dfb722..9fb225ef 100644 --- a/pydantic_schemaorg/QualitativeValue.py +++ b/pydantic_schemaorg/QualitativeValue.py @@ -15,7 +15,7 @@ class QualitativeValue(Enumeration): See: https://schema.org/QualitativeValue Model depth: 4 """ - type_: str = Field(default="QualitativeValue", alias='@type', constant=True) + type_: str = Field(default="QualitativeValue", alias='@type', const=True) lesser: Optional[Union[List[Union['QualitativeValue', str]], 'QualitativeValue', str]] = Field( default=None, description="This ordering relation for qualitative values indicates that the subject is lesser" @@ -55,7 +55,7 @@ class QualitativeValue(Enumeration): "https://schema.org/gtin13, ...) will typically expect such data to be provided using" "those properties, rather than using the generic property/value mechanism.", ) - valueReference: Optional[Union[List[Union[str, 'Text', 'StructuredValue', 'DefinedTerm', 'QualitativeValue', 'QuantitativeValue', 'Enumeration', 'MeasurementTypeEnumeration', 'PropertyValue']], str, 'Text', 'StructuredValue', 'DefinedTerm', 'QualitativeValue', 'QuantitativeValue', 'Enumeration', 'MeasurementTypeEnumeration', 'PropertyValue']] = Field( + valueReference: Optional[Union[List[Union[str, 'Text', 'PropertyValue', 'StructuredValue', 'Enumeration', 'MeasurementTypeEnumeration', 'QualitativeValue', 'DefinedTerm', 'QuantitativeValue']], str, 'Text', 'PropertyValue', 'StructuredValue', 'Enumeration', 'MeasurementTypeEnumeration', 'QualitativeValue', 'DefinedTerm', 'QuantitativeValue']] = Field( default=None, description="A secondary value that provides additional information on the original value, e.g." "a reference temperature or a type of measurement.", @@ -66,7 +66,7 @@ class QualitativeValue(Enumeration): from pydantic_schemaorg.PropertyValue import PropertyValue from pydantic_schemaorg.Text import Text from pydantic_schemaorg.StructuredValue import StructuredValue - from pydantic_schemaorg.DefinedTerm import DefinedTerm - from pydantic_schemaorg.QuantitativeValue import QuantitativeValue from pydantic_schemaorg.Enumeration import Enumeration from pydantic_schemaorg.MeasurementTypeEnumeration import MeasurementTypeEnumeration + from pydantic_schemaorg.DefinedTerm import DefinedTerm + from pydantic_schemaorg.QuantitativeValue import QuantitativeValue diff --git a/pydantic_schemaorg/QuantitativeValue.py b/pydantic_schemaorg/QuantitativeValue.py index d331015b..c0b83afd 100644 --- a/pydantic_schemaorg/QuantitativeValue.py +++ b/pydantic_schemaorg/QuantitativeValue.py @@ -1,9 +1,8 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import AnyUrl, StrictBool, StrictInt, StrictFloat from typing import List, Optional, Union -from pydantic import AnyUrl, StrictBool from pydantic import Field @@ -16,8 +15,8 @@ class QuantitativeValue(StructuredValue): See: https://schema.org/QuantitativeValue Model depth: 4 """ - type_: str = Field(default="QuantitativeValue", alias='@type', constant=True) - minValue: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + type_: str = Field(default="QuantitativeValue", alias='@type', const=True) + minValue: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The lower value of some characteristic or property.", ) @@ -26,7 +25,7 @@ class QuantitativeValue(StructuredValue): description="A string or text indicating the unit of measurement. Useful if you cannot provide a standard" "unit code for unitCode.", ) - value: Optional[Union[List[Union[int, float, 'Number', str, 'Text', StrictBool, 'Boolean', 'StructuredValue']], int, float, 'Number', str, 'Text', StrictBool, 'Boolean', 'StructuredValue']] = Field( + value: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text', StrictBool, 'Boolean', 'StructuredValue']], StrictInt, StrictFloat, 'Number', str, 'Text', StrictBool, 'Boolean', 'StructuredValue']] = Field( default=None, description="The value of the quantitative value or property value node. * For [[QuantitativeValue]]" "and [[MonetaryAmount]], the recommended type for values is 'Number'. * For [[PropertyValue]]," @@ -40,7 +39,7 @@ class QuantitativeValue(StructuredValue): description="The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL." "Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon.", ) - maxValue: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + maxValue: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The upper value of some characteristic or property.", ) @@ -53,7 +52,7 @@ class QuantitativeValue(StructuredValue): "https://schema.org/gtin13, ...) will typically expect such data to be provided using" "those properties, rather than using the generic property/value mechanism.", ) - valueReference: Optional[Union[List[Union[str, 'Text', 'StructuredValue', 'DefinedTerm', 'QualitativeValue', 'QuantitativeValue', 'Enumeration', 'MeasurementTypeEnumeration', 'PropertyValue']], str, 'Text', 'StructuredValue', 'DefinedTerm', 'QualitativeValue', 'QuantitativeValue', 'Enumeration', 'MeasurementTypeEnumeration', 'PropertyValue']] = Field( + valueReference: Optional[Union[List[Union[str, 'Text', 'PropertyValue', 'StructuredValue', 'Enumeration', 'MeasurementTypeEnumeration', 'QualitativeValue', 'DefinedTerm', 'QuantitativeValue']], str, 'Text', 'PropertyValue', 'StructuredValue', 'Enumeration', 'MeasurementTypeEnumeration', 'QualitativeValue', 'DefinedTerm', 'QuantitativeValue']] = Field( default=None, description="A secondary value that provides additional information on the original value, e.g." "a reference temperature or a type of measurement.", @@ -67,7 +66,7 @@ class QuantitativeValue(StructuredValue): from pydantic_schemaorg.StructuredValue import StructuredValue from pydantic_schemaorg.URL import URL from pydantic_schemaorg.PropertyValue import PropertyValue - from pydantic_schemaorg.DefinedTerm import DefinedTerm - from pydantic_schemaorg.QualitativeValue import QualitativeValue from pydantic_schemaorg.Enumeration import Enumeration from pydantic_schemaorg.MeasurementTypeEnumeration import MeasurementTypeEnumeration + from pydantic_schemaorg.QualitativeValue import QualitativeValue + from pydantic_schemaorg.DefinedTerm import DefinedTerm diff --git a/pydantic_schemaorg/QuantitativeValueDistribution.py b/pydantic_schemaorg/QuantitativeValueDistribution.py index a4888985..e126004e 100644 --- a/pydantic_schemaorg/QuantitativeValueDistribution.py +++ b/pydantic_schemaorg/QuantitativeValueDistribution.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -15,8 +15,8 @@ class QuantitativeValueDistribution(StructuredValue): See: https://schema.org/QuantitativeValueDistribution Model depth: 4 """ - type_: str = Field(default="QuantitativeValueDistribution", alias='@type', constant=True) - percentile75: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + type_: str = Field(default="QuantitativeValueDistribution", alias='@type', const=True) + percentile75: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The 75th percentile value.", ) @@ -24,19 +24,19 @@ class QuantitativeValueDistribution(StructuredValue): default=None, description="The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).", ) - percentile25: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + percentile25: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The 25th percentile value.", ) - percentile90: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + percentile90: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The 90th percentile value.", ) - percentile10: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + percentile10: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The 10th percentile value.", ) - median: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + median: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The median value.", ) diff --git a/pydantic_schemaorg/Quantity.py b/pydantic_schemaorg/Quantity.py index 6ebbf52e..0d8de14e 100644 --- a/pydantic_schemaorg/Quantity.py +++ b/pydantic_schemaorg/Quantity.py @@ -12,5 +12,5 @@ class Quantity(Intangible): See: https://schema.org/Quantity Model depth: 3 """ - type_: str = Field(default="Quantity", alias='@type', constant=True) + type_: str = Field(default="Quantity", alias='@type', const=True) diff --git a/pydantic_schemaorg/Question.py b/pydantic_schemaorg/Question.py index 2a10a9a3..e6c1f7d4 100644 --- a/pydantic_schemaorg/Question.py +++ b/pydantic_schemaorg/Question.py @@ -15,7 +15,7 @@ class Question(Comment): See: https://schema.org/Question Model depth: 4 """ - type_: str = Field(default="Question", alias='@type', constant=True) + type_: str = Field(default="Question", alias='@type', const=True) eduQuestionType: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="For questions that are part of learning resources (e.g. Quiz), eduQuestionType indicates" diff --git a/pydantic_schemaorg/Quiz.py b/pydantic_schemaorg/Quiz.py index 0405a751..38ff83fd 100644 --- a/pydantic_schemaorg/Quiz.py +++ b/pydantic_schemaorg/Quiz.py @@ -11,5 +11,5 @@ class Quiz(LearningResource): See: https://schema.org/Quiz Model depth: 4 """ - type_: str = Field(default="Quiz", alias='@type', constant=True) + type_: str = Field(default="Quiz", alias='@type', const=True) diff --git a/pydantic_schemaorg/Quotation.py b/pydantic_schemaorg/Quotation.py index d3a473b1..582129c8 100644 --- a/pydantic_schemaorg/Quotation.py +++ b/pydantic_schemaorg/Quotation.py @@ -17,8 +17,8 @@ class Quotation(CreativeWork): See: https://schema.org/Quotation Model depth: 3 """ - type_: str = Field(default="Quotation", alias='@type', constant=True) - spokenByCharacter: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + type_: str = Field(default="Quotation", alias='@type', const=True) + spokenByCharacter: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The (e.g. fictional) character, Person or Organization to whom the quotation is attributed" "within the containing CreativeWork.", @@ -26,5 +26,5 @@ class Quotation(CreativeWork): if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization diff --git a/pydantic_schemaorg/QuoteAction.py b/pydantic_schemaorg/QuoteAction.py index 256c9033..a87538c5 100644 --- a/pydantic_schemaorg/QuoteAction.py +++ b/pydantic_schemaorg/QuoteAction.py @@ -11,5 +11,5 @@ class QuoteAction(TradeAction): See: https://schema.org/QuoteAction Model depth: 4 """ - type_: str = Field(default="QuoteAction", alias='@type', constant=True) + type_: str = Field(default="QuoteAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/RVPark.py b/pydantic_schemaorg/RVPark.py index c21e30b5..4dffe506 100644 --- a/pydantic_schemaorg/RVPark.py +++ b/pydantic_schemaorg/RVPark.py @@ -12,5 +12,5 @@ class RVPark(CivicStructure): See: https://schema.org/RVPark Model depth: 4 """ - type_: str = Field(default="RVPark", alias='@type', constant=True) + type_: str = Field(default="RVPark", alias='@type', const=True) diff --git a/pydantic_schemaorg/RadiationTherapy.py b/pydantic_schemaorg/RadiationTherapy.py index 96d6c0c8..354419d8 100644 --- a/pydantic_schemaorg/RadiationTherapy.py +++ b/pydantic_schemaorg/RadiationTherapy.py @@ -11,5 +11,5 @@ class RadiationTherapy(MedicalTherapy): See: https://schema.org/RadiationTherapy Model depth: 6 """ - type_: str = Field(default="RadiationTherapy", alias='@type', constant=True) + type_: str = Field(default="RadiationTherapy", alias='@type', const=True) diff --git a/pydantic_schemaorg/RadioBroadcastService.py b/pydantic_schemaorg/RadioBroadcastService.py index f74a5c57..b4f6e72d 100644 --- a/pydantic_schemaorg/RadioBroadcastService.py +++ b/pydantic_schemaorg/RadioBroadcastService.py @@ -12,5 +12,5 @@ class RadioBroadcastService(BroadcastService): See: https://schema.org/RadioBroadcastService Model depth: 5 """ - type_: str = Field(default="RadioBroadcastService", alias='@type', constant=True) + type_: str = Field(default="RadioBroadcastService", alias='@type', const=True) diff --git a/pydantic_schemaorg/RadioChannel.py b/pydantic_schemaorg/RadioChannel.py index f402ba64..637feff6 100644 --- a/pydantic_schemaorg/RadioChannel.py +++ b/pydantic_schemaorg/RadioChannel.py @@ -11,5 +11,5 @@ class RadioChannel(BroadcastChannel): See: https://schema.org/RadioChannel Model depth: 4 """ - type_: str = Field(default="RadioChannel", alias='@type', constant=True) + type_: str = Field(default="RadioChannel", alias='@type', const=True) diff --git a/pydantic_schemaorg/RadioClip.py b/pydantic_schemaorg/RadioClip.py index 780bdc8e..f05391d7 100644 --- a/pydantic_schemaorg/RadioClip.py +++ b/pydantic_schemaorg/RadioClip.py @@ -11,5 +11,5 @@ class RadioClip(Clip): See: https://schema.org/RadioClip Model depth: 4 """ - type_: str = Field(default="RadioClip", alias='@type', constant=True) + type_: str = Field(default="RadioClip", alias='@type', const=True) diff --git a/pydantic_schemaorg/RadioEpisode.py b/pydantic_schemaorg/RadioEpisode.py index 00f1387a..1cdaf115 100644 --- a/pydantic_schemaorg/RadioEpisode.py +++ b/pydantic_schemaorg/RadioEpisode.py @@ -11,5 +11,5 @@ class RadioEpisode(Episode): See: https://schema.org/RadioEpisode Model depth: 4 """ - type_: str = Field(default="RadioEpisode", alias='@type', constant=True) + type_: str = Field(default="RadioEpisode", alias='@type', const=True) diff --git a/pydantic_schemaorg/RadioSeason.py b/pydantic_schemaorg/RadioSeason.py index 17ea835e..fed156a8 100644 --- a/pydantic_schemaorg/RadioSeason.py +++ b/pydantic_schemaorg/RadioSeason.py @@ -11,5 +11,5 @@ class RadioSeason(CreativeWorkSeason): See: https://schema.org/RadioSeason Model depth: 4 """ - type_: str = Field(default="RadioSeason", alias='@type', constant=True) + type_: str = Field(default="RadioSeason", alias='@type', const=True) diff --git a/pydantic_schemaorg/RadioSeries.py b/pydantic_schemaorg/RadioSeries.py index 2270909b..f1a4ee68 100644 --- a/pydantic_schemaorg/RadioSeries.py +++ b/pydantic_schemaorg/RadioSeries.py @@ -15,7 +15,7 @@ class RadioSeries(CreativeWorkSeries): See: https://schema.org/RadioSeries Model depth: 4 """ - type_: str = Field(default="RadioSeries", alias='@type', constant=True) + type_: str = Field(default="RadioSeries", alias='@type', const=True) actors: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual" diff --git a/pydantic_schemaorg/RadioStation.py b/pydantic_schemaorg/RadioStation.py index 1912a11e..e7b3af12 100644 --- a/pydantic_schemaorg/RadioStation.py +++ b/pydantic_schemaorg/RadioStation.py @@ -11,5 +11,5 @@ class RadioStation(LocalBusiness): See: https://schema.org/RadioStation Model depth: 4 """ - type_: str = Field(default="RadioStation", alias='@type', constant=True) + type_: str = Field(default="RadioStation", alias='@type', const=True) diff --git a/pydantic_schemaorg/Radiography.py b/pydantic_schemaorg/Radiography.py index 39a72bbd..19ed866f 100644 --- a/pydantic_schemaorg/Radiography.py +++ b/pydantic_schemaorg/Radiography.py @@ -2,11 +2,11 @@ from pydantic import Field -from pydantic_schemaorg.MedicalSpecialty import MedicalSpecialty from pydantic_schemaorg.MedicalImagingTechnique import MedicalImagingTechnique +from pydantic_schemaorg.MedicalSpecialty import MedicalSpecialty -class Radiography(MedicalSpecialty, MedicalImagingTechnique): +class Radiography(MedicalImagingTechnique, MedicalSpecialty): """Radiography is an imaging technique that uses electromagnetic radiation other than" "visible light, especially X-rays, to view the internal structure of a non-uniformly" "composed and opaque object such as the human body. @@ -14,5 +14,5 @@ class Radiography(MedicalSpecialty, MedicalImagingTechnique): See: https://schema.org/Radiography Model depth: 6 """ - type_: str = Field(default="Radiography", alias='@type', constant=True) + type_: str = Field(default="Radiography", alias='@type', const=True) diff --git a/pydantic_schemaorg/RandomizedTrial.py b/pydantic_schemaorg/RandomizedTrial.py index 1dcd07ae..ce7a6c5a 100644 --- a/pydantic_schemaorg/RandomizedTrial.py +++ b/pydantic_schemaorg/RandomizedTrial.py @@ -11,5 +11,5 @@ class RandomizedTrial(MedicalTrialDesign): See: https://schema.org/RandomizedTrial Model depth: 6 """ - type_: str = Field(default="RandomizedTrial", alias='@type', constant=True) + type_: str = Field(default="RandomizedTrial", alias='@type', const=True) diff --git a/pydantic_schemaorg/Rating.py b/pydantic_schemaorg/Rating.py index e843f3ad..9f733ce1 100644 --- a/pydantic_schemaorg/Rating.py +++ b/pydantic_schemaorg/Rating.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -15,12 +15,12 @@ class Rating(Intangible): See: https://schema.org/Rating Model depth: 3 """ - type_: str = Field(default="Rating", alias='@type', constant=True) - worstRating: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + type_: str = Field(default="Rating", alias='@type', const=True) + worstRating: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The lowest value allowed in this rating system. If worstRating is omitted, 1 is assumed.", ) - author: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + author: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The author of this content or rating. Please note that author is special in that HTML 5" "provides a special mechanism for indicating authorship via the rel tag. That is equivalent" @@ -30,7 +30,7 @@ class Rating(Intangible): default=None, description="This Review or Rating is relevant to this part or facet of the itemReviewed.", ) - ratingValue: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + ratingValue: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The rating for the content. Usage guidelines: * Use values from 0123456789 (Unicode" "'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similiar" @@ -43,7 +43,7 @@ class Rating(Intangible): "information that led to the conclusion expressed in the rating. This is particularly" "applicable to ratings associated with \"fact check\" markup using [[ClaimReview]].", ) - bestRating: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + bestRating: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The highest value allowed in this rating system. If bestRating is omitted, 5 is assumed.", ) @@ -52,5 +52,5 @@ class Rating(Intangible): if TYPE_CHECKING: from pydantic_schemaorg.Number import Number from pydantic_schemaorg.Text import Text - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization diff --git a/pydantic_schemaorg/ReactAction.py b/pydantic_schemaorg/ReactAction.py index 1289d555..2d56a569 100644 --- a/pydantic_schemaorg/ReactAction.py +++ b/pydantic_schemaorg/ReactAction.py @@ -11,5 +11,5 @@ class ReactAction(AssessAction): See: https://schema.org/ReactAction Model depth: 4 """ - type_: str = Field(default="ReactAction", alias='@type', constant=True) + type_: str = Field(default="ReactAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReadAction.py b/pydantic_schemaorg/ReadAction.py index 87bccd99..15a6d0c0 100644 --- a/pydantic_schemaorg/ReadAction.py +++ b/pydantic_schemaorg/ReadAction.py @@ -11,5 +11,5 @@ class ReadAction(ConsumeAction): See: https://schema.org/ReadAction Model depth: 4 """ - type_: str = Field(default="ReadAction", alias='@type', constant=True) + type_: str = Field(default="ReadAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReadPermission.py b/pydantic_schemaorg/ReadPermission.py index af76e9df..35fc9a42 100644 --- a/pydantic_schemaorg/ReadPermission.py +++ b/pydantic_schemaorg/ReadPermission.py @@ -11,5 +11,5 @@ class ReadPermission(DigitalDocumentPermissionType): See: https://schema.org/ReadPermission Model depth: 5 """ - type_: str = Field(default="ReadPermission", alias='@type', constant=True) + type_: str = Field(default="ReadPermission", alias='@type', const=True) diff --git a/pydantic_schemaorg/RealEstateAgent.py b/pydantic_schemaorg/RealEstateAgent.py index 67a5b708..e3aa1057 100644 --- a/pydantic_schemaorg/RealEstateAgent.py +++ b/pydantic_schemaorg/RealEstateAgent.py @@ -11,5 +11,5 @@ class RealEstateAgent(LocalBusiness): See: https://schema.org/RealEstateAgent Model depth: 4 """ - type_: str = Field(default="RealEstateAgent", alias='@type', constant=True) + type_: str = Field(default="RealEstateAgent", alias='@type', const=True) diff --git a/pydantic_schemaorg/RealEstateListing.py b/pydantic_schemaorg/RealEstateListing.py index 7ceec9db..13e2a750 100644 --- a/pydantic_schemaorg/RealEstateListing.py +++ b/pydantic_schemaorg/RealEstateListing.py @@ -17,8 +17,8 @@ class RealEstateListing(WebPage): See: https://schema.org/RealEstateListing Model depth: 4 """ - type_: str = Field(default="RealEstateListing", alias='@type', constant=True) - leaseLength: Optional[Union[List[Union['QuantitativeValue', 'Duration', str]], 'QuantitativeValue', 'Duration', str]] = Field( + type_: str = Field(default="RealEstateListing", alias='@type', const=True) + leaseLength: Optional[Union[List[Union['Duration', 'QuantitativeValue', str]], 'Duration', 'QuantitativeValue', str]] = Field( default=None, description="Length of the lease for some [[Accommodation]], either particular to some [[Offer]]" "or in some cases intrinsic to the property.", @@ -30,7 +30,7 @@ class RealEstateListing(WebPage): if TYPE_CHECKING: - from pydantic_schemaorg.QuantitativeValue import QuantitativeValue from pydantic_schemaorg.Duration import Duration + from pydantic_schemaorg.QuantitativeValue import QuantitativeValue from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Date import Date diff --git a/pydantic_schemaorg/RearWheelDriveConfiguration.py b/pydantic_schemaorg/RearWheelDriveConfiguration.py index 65ea426d..1bbe320e 100644 --- a/pydantic_schemaorg/RearWheelDriveConfiguration.py +++ b/pydantic_schemaorg/RearWheelDriveConfiguration.py @@ -11,5 +11,5 @@ class RearWheelDriveConfiguration(DriveWheelConfigurationValue): See: https://schema.org/RearWheelDriveConfiguration Model depth: 6 """ - type_: str = Field(default="RearWheelDriveConfiguration", alias='@type', constant=True) + type_: str = Field(default="RearWheelDriveConfiguration", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReceiveAction.py b/pydantic_schemaorg/ReceiveAction.py index cd5fbea9..870ac302 100644 --- a/pydantic_schemaorg/ReceiveAction.py +++ b/pydantic_schemaorg/ReceiveAction.py @@ -18,8 +18,8 @@ class ReceiveAction(TransferAction): See: https://schema.org/ReceiveAction Model depth: 4 """ - type_: str = Field(default="ReceiveAction", alias='@type', constant=True) - sender: Optional[Union[List[Union['Organization', 'Person', 'Audience', str]], 'Organization', 'Person', 'Audience', str]] = Field( + type_: str = Field(default="ReceiveAction", alias='@type', const=True) + sender: Optional[Union[List[Union['Person', 'Audience', 'Organization', str]], 'Person', 'Audience', 'Organization', str]] = Field( default=None, description="A sub property of participant. The participant who is at the sending end of the action.", ) @@ -30,7 +30,7 @@ class ReceiveAction(TransferAction): if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person from pydantic_schemaorg.Audience import Audience + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.DeliveryMethod import DeliveryMethod diff --git a/pydantic_schemaorg/Recipe.py b/pydantic_schemaorg/Recipe.py index af9c1505..7ed6d23d 100644 --- a/pydantic_schemaorg/Recipe.py +++ b/pydantic_schemaorg/Recipe.py @@ -16,7 +16,7 @@ class Recipe(HowTo): See: https://schema.org/Recipe Model depth: 4 """ - type_: str = Field(default="Recipe", alias='@type', constant=True) + type_: str = Field(default="Recipe", alias='@type', const=True) recipeInstructions: Optional[Union[List[Union[str, 'Text', 'ItemList', 'CreativeWork']], str, 'Text', 'ItemList', 'CreativeWork']] = Field( default=None, description="A step in making the recipe, in the form of a single item (document, video, etc.) or an ordered" diff --git a/pydantic_schemaorg/Recommendation.py b/pydantic_schemaorg/Recommendation.py index 567f32b6..0b733a6c 100644 --- a/pydantic_schemaorg/Recommendation.py +++ b/pydantic_schemaorg/Recommendation.py @@ -19,8 +19,8 @@ class Recommendation(Review): See: https://schema.org/Recommendation Model depth: 4 """ - type_: str = Field(default="Recommendation", alias='@type', constant=True) - category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']], AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']] = Field( + type_: str = Field(default="Recommendation", alias='@type', const=True) + category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']], AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']] = Field( default=None, description="A category for the item. Greater signs or slashes can be used to informally indicate a" "category hierarchy.", @@ -30,5 +30,5 @@ class Recommendation(Review): if TYPE_CHECKING: from pydantic_schemaorg.URL import URL from pydantic_schemaorg.Text import Text - from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.PhysicalActivityCategory import PhysicalActivityCategory + from pydantic_schemaorg.Thing import Thing diff --git a/pydantic_schemaorg/RecommendedDoseSchedule.py b/pydantic_schemaorg/RecommendedDoseSchedule.py index 94b4e9dc..f11c5f1a 100644 --- a/pydantic_schemaorg/RecommendedDoseSchedule.py +++ b/pydantic_schemaorg/RecommendedDoseSchedule.py @@ -13,5 +13,5 @@ class RecommendedDoseSchedule(DoseSchedule): See: https://schema.org/RecommendedDoseSchedule Model depth: 5 """ - type_: str = Field(default="RecommendedDoseSchedule", alias='@type', constant=True) + type_: str = Field(default="RecommendedDoseSchedule", alias='@type', const=True) diff --git a/pydantic_schemaorg/Recruiting.py b/pydantic_schemaorg/Recruiting.py index 60cc017c..3a4a6182 100644 --- a/pydantic_schemaorg/Recruiting.py +++ b/pydantic_schemaorg/Recruiting.py @@ -11,5 +11,5 @@ class Recruiting(MedicalStudyStatus): See: https://schema.org/Recruiting Model depth: 6 """ - type_: str = Field(default="Recruiting", alias='@type', constant=True) + type_: str = Field(default="Recruiting", alias='@type', const=True) diff --git a/pydantic_schemaorg/RecyclingCenter.py b/pydantic_schemaorg/RecyclingCenter.py index a3bd6b77..c97f2bf7 100644 --- a/pydantic_schemaorg/RecyclingCenter.py +++ b/pydantic_schemaorg/RecyclingCenter.py @@ -11,5 +11,5 @@ class RecyclingCenter(LocalBusiness): See: https://schema.org/RecyclingCenter Model depth: 4 """ - type_: str = Field(default="RecyclingCenter", alias='@type', constant=True) + type_: str = Field(default="RecyclingCenter", alias='@type', const=True) diff --git a/pydantic_schemaorg/RefundTypeEnumeration.py b/pydantic_schemaorg/RefundTypeEnumeration.py index fc0768b6..4be7695f 100644 --- a/pydantic_schemaorg/RefundTypeEnumeration.py +++ b/pydantic_schemaorg/RefundTypeEnumeration.py @@ -11,5 +11,5 @@ class RefundTypeEnumeration(Enumeration): See: https://schema.org/RefundTypeEnumeration Model depth: 4 """ - type_: str = Field(default="RefundTypeEnumeration", alias='@type', constant=True) + type_: str = Field(default="RefundTypeEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/RefurbishedCondition.py b/pydantic_schemaorg/RefurbishedCondition.py index 43b78ada..fc660c62 100644 --- a/pydantic_schemaorg/RefurbishedCondition.py +++ b/pydantic_schemaorg/RefurbishedCondition.py @@ -11,5 +11,5 @@ class RefurbishedCondition(OfferItemCondition): See: https://schema.org/RefurbishedCondition Model depth: 5 """ - type_: str = Field(default="RefurbishedCondition", alias='@type', constant=True) + type_: str = Field(default="RefurbishedCondition", alias='@type', const=True) diff --git a/pydantic_schemaorg/RegisterAction.py b/pydantic_schemaorg/RegisterAction.py index e2060aa4..e32a6ab3 100644 --- a/pydantic_schemaorg/RegisterAction.py +++ b/pydantic_schemaorg/RegisterAction.py @@ -16,5 +16,5 @@ class RegisterAction(InteractAction): See: https://schema.org/RegisterAction Model depth: 4 """ - type_: str = Field(default="RegisterAction", alias='@type', constant=True) + type_: str = Field(default="RegisterAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Registry.py b/pydantic_schemaorg/Registry.py index 2b385c25..1db65794 100644 --- a/pydantic_schemaorg/Registry.py +++ b/pydantic_schemaorg/Registry.py @@ -11,5 +11,5 @@ class Registry(MedicalObservationalStudyDesign): See: https://schema.org/Registry Model depth: 6 """ - type_: str = Field(default="Registry", alias='@type', constant=True) + type_: str = Field(default="Registry", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReimbursementCap.py b/pydantic_schemaorg/ReimbursementCap.py index d6f92acb..6deb87dd 100644 --- a/pydantic_schemaorg/ReimbursementCap.py +++ b/pydantic_schemaorg/ReimbursementCap.py @@ -11,5 +11,5 @@ class ReimbursementCap(DrugCostCategory): See: https://schema.org/ReimbursementCap Model depth: 6 """ - type_: str = Field(default="ReimbursementCap", alias='@type', constant=True) + type_: str = Field(default="ReimbursementCap", alias='@type', const=True) diff --git a/pydantic_schemaorg/RejectAction.py b/pydantic_schemaorg/RejectAction.py index 415e9a52..d50f1137 100644 --- a/pydantic_schemaorg/RejectAction.py +++ b/pydantic_schemaorg/RejectAction.py @@ -12,5 +12,5 @@ class RejectAction(AllocateAction): See: https://schema.org/RejectAction Model depth: 5 """ - type_: str = Field(default="RejectAction", alias='@type', constant=True) + type_: str = Field(default="RejectAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/RelatedTopicsHealthAspect.py b/pydantic_schemaorg/RelatedTopicsHealthAspect.py index 44ef6de3..ce6f4abd 100644 --- a/pydantic_schemaorg/RelatedTopicsHealthAspect.py +++ b/pydantic_schemaorg/RelatedTopicsHealthAspect.py @@ -11,5 +11,5 @@ class RelatedTopicsHealthAspect(HealthAspectEnumeration): See: https://schema.org/RelatedTopicsHealthAspect Model depth: 5 """ - type_: str = Field(default="RelatedTopicsHealthAspect", alias='@type', constant=True) + type_: str = Field(default="RelatedTopicsHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/RemixAlbum.py b/pydantic_schemaorg/RemixAlbum.py index aebf319d..3b6fbc64 100644 --- a/pydantic_schemaorg/RemixAlbum.py +++ b/pydantic_schemaorg/RemixAlbum.py @@ -11,5 +11,5 @@ class RemixAlbum(MusicAlbumProductionType): See: https://schema.org/RemixAlbum Model depth: 5 """ - type_: str = Field(default="RemixAlbum", alias='@type', constant=True) + type_: str = Field(default="RemixAlbum", alias='@type', const=True) diff --git a/pydantic_schemaorg/Renal.py b/pydantic_schemaorg/Renal.py index d68e4bd8..0c86a837 100644 --- a/pydantic_schemaorg/Renal.py +++ b/pydantic_schemaorg/Renal.py @@ -12,5 +12,5 @@ class Renal(MedicalSpecialty): See: https://schema.org/Renal Model depth: 6 """ - type_: str = Field(default="Renal", alias='@type', constant=True) + type_: str = Field(default="Renal", alias='@type', const=True) diff --git a/pydantic_schemaorg/RentAction.py b/pydantic_schemaorg/RentAction.py index 637e3784..0b73899d 100644 --- a/pydantic_schemaorg/RentAction.py +++ b/pydantic_schemaorg/RentAction.py @@ -16,8 +16,8 @@ class RentAction(TradeAction): See: https://schema.org/RentAction Model depth: 4 """ - type_: str = Field(default="RentAction", alias='@type', constant=True) - landlord: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + type_: str = Field(default="RentAction", alias='@type', const=True) + landlord: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A sub property of participant. The owner of the real estate property.", ) @@ -28,6 +28,6 @@ class RentAction(TradeAction): if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.RealEstateAgent import RealEstateAgent diff --git a/pydantic_schemaorg/RentalCarReservation.py b/pydantic_schemaorg/RentalCarReservation.py index 2a66fe79..27ec399b 100644 --- a/pydantic_schemaorg/RentalCarReservation.py +++ b/pydantic_schemaorg/RentalCarReservation.py @@ -16,7 +16,7 @@ class RentalCarReservation(Reservation): See: https://schema.org/RentalCarReservation Model depth: 4 """ - type_: str = Field(default="RentalCarReservation", alias='@type', constant=True) + type_: str = Field(default="RentalCarReservation", alias='@type', const=True) pickupLocation: Optional[Union[List[Union['Place', str]], 'Place', str]] = Field( default=None, description="Where a taxi will pick up a passenger or a rental car can be picked up.", diff --git a/pydantic_schemaorg/RentalVehicleUsage.py b/pydantic_schemaorg/RentalVehicleUsage.py index 7c20a42c..0e816d3a 100644 --- a/pydantic_schemaorg/RentalVehicleUsage.py +++ b/pydantic_schemaorg/RentalVehicleUsage.py @@ -11,5 +11,5 @@ class RentalVehicleUsage(CarUsageType): See: https://schema.org/RentalVehicleUsage Model depth: 5 """ - type_: str = Field(default="RentalVehicleUsage", alias='@type', constant=True) + type_: str = Field(default="RentalVehicleUsage", alias='@type', const=True) diff --git a/pydantic_schemaorg/RepaymentSpecification.py b/pydantic_schemaorg/RepaymentSpecification.py index e20757f8..b8e654dc 100644 --- a/pydantic_schemaorg/RepaymentSpecification.py +++ b/pydantic_schemaorg/RepaymentSpecification.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -15,18 +15,18 @@ class RepaymentSpecification(StructuredValue): See: https://schema.org/RepaymentSpecification Model depth: 4 """ - type_: str = Field(default="RepaymentSpecification", alias='@type', constant=True) + type_: str = Field(default="RepaymentSpecification", alias='@type', const=True) loanPaymentAmount: Optional[Union[List[Union['MonetaryAmount', str]], 'MonetaryAmount', str]] = Field( default=None, description="The amount of money to pay in a single payment.", ) - numberOfLoanPayments: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + numberOfLoanPayments: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The number of payments contractually required at origination to repay the loan. For" "monthly paying loans this is the number of months from the contractual first payment" "date to the maturity date.", ) - loanPaymentFrequency: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + loanPaymentFrequency: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Frequency of payments due, i.e. number of months between payments. This is defined as" "a frequency, i.e. the reciprocal of a period of time.", @@ -35,7 +35,7 @@ class RepaymentSpecification(StructuredValue): default=None, description="The amount to be paid as a penalty in the event of early payment of the loan.", ) - downPayment: Optional[Union[List[Union[int, float, 'Number', 'MonetaryAmount', str]], int, float, 'Number', 'MonetaryAmount', str]] = Field( + downPayment: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]], StrictInt, StrictFloat, 'Number', 'MonetaryAmount', str]] = Field( default=None, description="a type of payment made in cash during the onset of the purchase of an expensive good/service." "The payment typically represents only a percentage of the full purchase price.", diff --git a/pydantic_schemaorg/ReplaceAction.py b/pydantic_schemaorg/ReplaceAction.py index 1c4ef032..3cb2adf3 100644 --- a/pydantic_schemaorg/ReplaceAction.py +++ b/pydantic_schemaorg/ReplaceAction.py @@ -14,7 +14,7 @@ class ReplaceAction(UpdateAction): See: https://schema.org/ReplaceAction Model depth: 4 """ - type_: str = Field(default="ReplaceAction", alias='@type', constant=True) + type_: str = Field(default="ReplaceAction", alias='@type', const=True) replacer: Optional[Union[List[Union['Thing', str]], 'Thing', str]] = Field( default=None, description="A sub property of object. The object that replaces.", diff --git a/pydantic_schemaorg/ReplyAction.py b/pydantic_schemaorg/ReplyAction.py index 747c8bb2..9f8ad08e 100644 --- a/pydantic_schemaorg/ReplyAction.py +++ b/pydantic_schemaorg/ReplyAction.py @@ -15,7 +15,7 @@ class ReplyAction(CommunicateAction): See: https://schema.org/ReplyAction Model depth: 5 """ - type_: str = Field(default="ReplyAction", alias='@type', constant=True) + type_: str = Field(default="ReplyAction", alias='@type', const=True) resultComment: Optional[Union[List[Union['Comment', str]], 'Comment', str]] = Field( default=None, description="A sub property of result. The Comment created or sent as a result of this action.", diff --git a/pydantic_schemaorg/Report.py b/pydantic_schemaorg/Report.py index 952ded25..28d997ae 100644 --- a/pydantic_schemaorg/Report.py +++ b/pydantic_schemaorg/Report.py @@ -14,7 +14,7 @@ class Report(Article): See: https://schema.org/Report Model depth: 4 """ - type_: str = Field(default="Report", alias='@type', constant=True) + type_: str = Field(default="Report", alias='@type', const=True) reportNumber: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The number or other unique designator assigned to a Report by the publishing organization.", diff --git a/pydantic_schemaorg/ReportageNewsArticle.py b/pydantic_schemaorg/ReportageNewsArticle.py index bce59584..215df7d6 100644 --- a/pydantic_schemaorg/ReportageNewsArticle.py +++ b/pydantic_schemaorg/ReportageNewsArticle.py @@ -23,5 +23,5 @@ class ReportageNewsArticle(NewsArticle): See: https://schema.org/ReportageNewsArticle Model depth: 5 """ - type_: str = Field(default="ReportageNewsArticle", alias='@type', constant=True) + type_: str = Field(default="ReportageNewsArticle", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReportedDoseSchedule.py b/pydantic_schemaorg/ReportedDoseSchedule.py index b84ea6de..b31af765 100644 --- a/pydantic_schemaorg/ReportedDoseSchedule.py +++ b/pydantic_schemaorg/ReportedDoseSchedule.py @@ -11,5 +11,5 @@ class ReportedDoseSchedule(DoseSchedule): See: https://schema.org/ReportedDoseSchedule Model depth: 5 """ - type_: str = Field(default="ReportedDoseSchedule", alias='@type', constant=True) + type_: str = Field(default="ReportedDoseSchedule", alias='@type', const=True) diff --git a/pydantic_schemaorg/ResearchOrganization.py b/pydantic_schemaorg/ResearchOrganization.py index 63ccfa03..55bca76e 100644 --- a/pydantic_schemaorg/ResearchOrganization.py +++ b/pydantic_schemaorg/ResearchOrganization.py @@ -11,5 +11,5 @@ class ResearchOrganization(Organization): See: https://schema.org/ResearchOrganization Model depth: 3 """ - type_: str = Field(default="ResearchOrganization", alias='@type', constant=True) + type_: str = Field(default="ResearchOrganization", alias='@type', const=True) diff --git a/pydantic_schemaorg/ResearchProject.py b/pydantic_schemaorg/ResearchProject.py index 6c2631e7..a6e1657e 100644 --- a/pydantic_schemaorg/ResearchProject.py +++ b/pydantic_schemaorg/ResearchProject.py @@ -11,5 +11,5 @@ class ResearchProject(Project): See: https://schema.org/ResearchProject Model depth: 4 """ - type_: str = Field(default="ResearchProject", alias='@type', constant=True) + type_: str = Field(default="ResearchProject", alias='@type', const=True) diff --git a/pydantic_schemaorg/Researcher.py b/pydantic_schemaorg/Researcher.py index eade1b10..20e5afa6 100644 --- a/pydantic_schemaorg/Researcher.py +++ b/pydantic_schemaorg/Researcher.py @@ -11,5 +11,5 @@ class Researcher(Audience): See: https://schema.org/Researcher Model depth: 4 """ - type_: str = Field(default="Researcher", alias='@type', constant=True) + type_: str = Field(default="Researcher", alias='@type', const=True) diff --git a/pydantic_schemaorg/Reservation.py b/pydantic_schemaorg/Reservation.py index dc4d742a..7293902d 100644 --- a/pydantic_schemaorg/Reservation.py +++ b/pydantic_schemaorg/Reservation.py @@ -3,7 +3,7 @@ from typing import List, Optional, Union from datetime import datetime -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -19,7 +19,7 @@ class Reservation(Intangible): See: https://schema.org/Reservation Model depth: 3 """ - type_: str = Field(default="Reservation", alias='@type', constant=True) + type_: str = Field(default="Reservation", alias='@type', const=True) reservationId: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A unique identifier for the reservation.", @@ -29,7 +29,7 @@ class Reservation(Intangible): description="Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the" "reservation.", ) - underName: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + underName: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The person or organization the reservation or ticket is for.", ) @@ -45,7 +45,7 @@ class Reservation(Intangible): "for cryptocurrencies e.g. \"BTC\"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)" "(LETS) and other currency types e.g. \"Ithaca HOUR\".", ) - totalPrice: Optional[Union[List[Union[int, float, 'Number', str, 'Text', 'PriceSpecification']], int, float, 'Number', str, 'Text', 'PriceSpecification']] = Field( + totalPrice: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text', 'PriceSpecification']], StrictInt, StrictFloat, 'Number', str, 'Text', 'PriceSpecification']] = Field( default=None, description="The total price for the reservation or ticket, including applicable taxes, shipping," "etc. Usage guidelines: * Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030)" @@ -53,7 +53,7 @@ class Reservation(Intangible): "'.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid" "using these symbols as a readability separator.", ) - bookingAgent: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + bookingAgent: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="'bookingAgent' is an out-dated term indicating a 'broker' that serves as a booking agent.", ) @@ -61,7 +61,7 @@ class Reservation(Intangible): default=None, description="The current status of the reservation.", ) - provider: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + provider: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The service provider, service operator, or service performer; the goods producer." "Another party (a seller) may offer those services or goods on behalf of the provider." @@ -75,7 +75,7 @@ class Reservation(Intangible): default=None, description="The thing -- flight, event, restaurant,etc. being reserved.", ) - broker: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + broker: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="An entity that arranges for an exchange between a buyer and a seller. In most cases a broker" "never acquires or releases ownership of a product or service involved in an exchange." @@ -91,8 +91,8 @@ class Reservation(Intangible): if TYPE_CHECKING: from pydantic_schemaorg.Text import Text from pydantic_schemaorg.ProgramMembership import ProgramMembership - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Number import Number from pydantic_schemaorg.PriceSpecification import PriceSpecification diff --git a/pydantic_schemaorg/ReservationCancelled.py b/pydantic_schemaorg/ReservationCancelled.py index 86cbf418..06e38de2 100644 --- a/pydantic_schemaorg/ReservationCancelled.py +++ b/pydantic_schemaorg/ReservationCancelled.py @@ -11,5 +11,5 @@ class ReservationCancelled(ReservationStatusType): See: https://schema.org/ReservationCancelled Model depth: 6 """ - type_: str = Field(default="ReservationCancelled", alias='@type', constant=True) + type_: str = Field(default="ReservationCancelled", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReservationConfirmed.py b/pydantic_schemaorg/ReservationConfirmed.py index 731c506a..cb2c85d1 100644 --- a/pydantic_schemaorg/ReservationConfirmed.py +++ b/pydantic_schemaorg/ReservationConfirmed.py @@ -11,5 +11,5 @@ class ReservationConfirmed(ReservationStatusType): See: https://schema.org/ReservationConfirmed Model depth: 6 """ - type_: str = Field(default="ReservationConfirmed", alias='@type', constant=True) + type_: str = Field(default="ReservationConfirmed", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReservationHold.py b/pydantic_schemaorg/ReservationHold.py index bf26cc00..46db3457 100644 --- a/pydantic_schemaorg/ReservationHold.py +++ b/pydantic_schemaorg/ReservationHold.py @@ -12,5 +12,5 @@ class ReservationHold(ReservationStatusType): See: https://schema.org/ReservationHold Model depth: 6 """ - type_: str = Field(default="ReservationHold", alias='@type', constant=True) + type_: str = Field(default="ReservationHold", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReservationPackage.py b/pydantic_schemaorg/ReservationPackage.py index a66c8cb0..f8342ccd 100644 --- a/pydantic_schemaorg/ReservationPackage.py +++ b/pydantic_schemaorg/ReservationPackage.py @@ -14,7 +14,7 @@ class ReservationPackage(Reservation): See: https://schema.org/ReservationPackage Model depth: 4 """ - type_: str = Field(default="ReservationPackage", alias='@type', constant=True) + type_: str = Field(default="ReservationPackage", alias='@type', const=True) subReservation: Optional[Union[List[Union['Reservation', str]], 'Reservation', str]] = Field( default=None, description="The individual reservations included in the package. Typically a repeated property.", diff --git a/pydantic_schemaorg/ReservationPending.py b/pydantic_schemaorg/ReservationPending.py index 01c5e574..72f3d33c 100644 --- a/pydantic_schemaorg/ReservationPending.py +++ b/pydantic_schemaorg/ReservationPending.py @@ -11,5 +11,5 @@ class ReservationPending(ReservationStatusType): See: https://schema.org/ReservationPending Model depth: 6 """ - type_: str = Field(default="ReservationPending", alias='@type', constant=True) + type_: str = Field(default="ReservationPending", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReservationStatusType.py b/pydantic_schemaorg/ReservationStatusType.py index 5995cb40..071710bc 100644 --- a/pydantic_schemaorg/ReservationStatusType.py +++ b/pydantic_schemaorg/ReservationStatusType.py @@ -11,5 +11,5 @@ class ReservationStatusType(StatusEnumeration): See: https://schema.org/ReservationStatusType Model depth: 5 """ - type_: str = Field(default="ReservationStatusType", alias='@type', constant=True) + type_: str = Field(default="ReservationStatusType", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReserveAction.py b/pydantic_schemaorg/ReserveAction.py index 8e03572e..820f1bc7 100644 --- a/pydantic_schemaorg/ReserveAction.py +++ b/pydantic_schemaorg/ReserveAction.py @@ -13,5 +13,5 @@ class ReserveAction(PlanAction): See: https://schema.org/ReserveAction Model depth: 5 """ - type_: str = Field(default="ReserveAction", alias='@type', constant=True) + type_: str = Field(default="ReserveAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Reservoir.py b/pydantic_schemaorg/Reservoir.py index 85a6088b..315c7995 100644 --- a/pydantic_schemaorg/Reservoir.py +++ b/pydantic_schemaorg/Reservoir.py @@ -11,5 +11,5 @@ class Reservoir(BodyOfWater): See: https://schema.org/Reservoir Model depth: 5 """ - type_: str = Field(default="Reservoir", alias='@type', constant=True) + type_: str = Field(default="Reservoir", alias='@type', const=True) diff --git a/pydantic_schemaorg/Residence.py b/pydantic_schemaorg/Residence.py index 10f1d550..e4fc7b05 100644 --- a/pydantic_schemaorg/Residence.py +++ b/pydantic_schemaorg/Residence.py @@ -14,7 +14,7 @@ class Residence(Place): See: https://schema.org/Residence Model depth: 3 """ - type_: str = Field(default="Residence", alias='@type', constant=True) + type_: str = Field(default="Residence", alias='@type', const=True) accommodationFloorPlan: Optional[Union[List[Union['FloorPlan', str]], 'FloorPlan', str]] = Field( default=None, description="A floorplan of some [[Accommodation]].", diff --git a/pydantic_schemaorg/Resort.py b/pydantic_schemaorg/Resort.py index 1b5fc9cd..4aa624e4 100644 --- a/pydantic_schemaorg/Resort.py +++ b/pydantic_schemaorg/Resort.py @@ -15,5 +15,5 @@ class Resort(LodgingBusiness): See: https://schema.org/Resort Model depth: 5 """ - type_: str = Field(default="Resort", alias='@type', constant=True) + type_: str = Field(default="Resort", alias='@type', const=True) diff --git a/pydantic_schemaorg/RespiratoryTherapy.py b/pydantic_schemaorg/RespiratoryTherapy.py index b9b8cf94..1069f4b5 100644 --- a/pydantic_schemaorg/RespiratoryTherapy.py +++ b/pydantic_schemaorg/RespiratoryTherapy.py @@ -13,5 +13,5 @@ class RespiratoryTherapy(MedicalTherapy, MedicalSpecialty): See: https://schema.org/RespiratoryTherapy Model depth: 6 """ - type_: str = Field(default="RespiratoryTherapy", alias='@type', constant=True) + type_: str = Field(default="RespiratoryTherapy", alias='@type', const=True) diff --git a/pydantic_schemaorg/Restaurant.py b/pydantic_schemaorg/Restaurant.py index 04b9be56..fb7c1752 100644 --- a/pydantic_schemaorg/Restaurant.py +++ b/pydantic_schemaorg/Restaurant.py @@ -11,5 +11,5 @@ class Restaurant(FoodEstablishment): See: https://schema.org/Restaurant Model depth: 5 """ - type_: str = Field(default="Restaurant", alias='@type', constant=True) + type_: str = Field(default="Restaurant", alias='@type', const=True) diff --git a/pydantic_schemaorg/RestockingFees.py b/pydantic_schemaorg/RestockingFees.py index 43b2c8c2..a97749c2 100644 --- a/pydantic_schemaorg/RestockingFees.py +++ b/pydantic_schemaorg/RestockingFees.py @@ -11,5 +11,5 @@ class RestockingFees(ReturnFeesEnumeration): See: https://schema.org/RestockingFees Model depth: 5 """ - type_: str = Field(default="RestockingFees", alias='@type', constant=True) + type_: str = Field(default="RestockingFees", alias='@type', const=True) diff --git a/pydantic_schemaorg/RestrictedDiet.py b/pydantic_schemaorg/RestrictedDiet.py index 258b5bfb..694095fe 100644 --- a/pydantic_schemaorg/RestrictedDiet.py +++ b/pydantic_schemaorg/RestrictedDiet.py @@ -12,5 +12,5 @@ class RestrictedDiet(Enumeration): See: https://schema.org/RestrictedDiet Model depth: 4 """ - type_: str = Field(default="RestrictedDiet", alias='@type', constant=True) + type_: str = Field(default="RestrictedDiet", alias='@type', const=True) diff --git a/pydantic_schemaorg/ResultsAvailable.py b/pydantic_schemaorg/ResultsAvailable.py index b1879835..c0fdf889 100644 --- a/pydantic_schemaorg/ResultsAvailable.py +++ b/pydantic_schemaorg/ResultsAvailable.py @@ -11,5 +11,5 @@ class ResultsAvailable(MedicalStudyStatus): See: https://schema.org/ResultsAvailable Model depth: 6 """ - type_: str = Field(default="ResultsAvailable", alias='@type', constant=True) + type_: str = Field(default="ResultsAvailable", alias='@type', const=True) diff --git a/pydantic_schemaorg/ResultsNotAvailable.py b/pydantic_schemaorg/ResultsNotAvailable.py index 9201b59f..90ed4903 100644 --- a/pydantic_schemaorg/ResultsNotAvailable.py +++ b/pydantic_schemaorg/ResultsNotAvailable.py @@ -11,5 +11,5 @@ class ResultsNotAvailable(MedicalStudyStatus): See: https://schema.org/ResultsNotAvailable Model depth: 6 """ - type_: str = Field(default="ResultsNotAvailable", alias='@type', constant=True) + type_: str = Field(default="ResultsNotAvailable", alias='@type', const=True) diff --git a/pydantic_schemaorg/ResumeAction.py b/pydantic_schemaorg/ResumeAction.py index 33919810..51cad0b7 100644 --- a/pydantic_schemaorg/ResumeAction.py +++ b/pydantic_schemaorg/ResumeAction.py @@ -12,5 +12,5 @@ class ResumeAction(ControlAction): See: https://schema.org/ResumeAction Model depth: 4 """ - type_: str = Field(default="ResumeAction", alias='@type', constant=True) + type_: str = Field(default="ResumeAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Retail.py b/pydantic_schemaorg/Retail.py index 69d9cfbd..1feebf54 100644 --- a/pydantic_schemaorg/Retail.py +++ b/pydantic_schemaorg/Retail.py @@ -11,5 +11,5 @@ class Retail(DrugCostCategory): See: https://schema.org/Retail Model depth: 6 """ - type_: str = Field(default="Retail", alias='@type', constant=True) + type_: str = Field(default="Retail", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReturnAction.py b/pydantic_schemaorg/ReturnAction.py index 42f48387..7da0d0b8 100644 --- a/pydantic_schemaorg/ReturnAction.py +++ b/pydantic_schemaorg/ReturnAction.py @@ -15,15 +15,15 @@ class ReturnAction(TransferAction): See: https://schema.org/ReturnAction Model depth: 4 """ - type_: str = Field(default="ReturnAction", alias='@type', constant=True) - recipient: Optional[Union[List[Union['Organization', 'Person', 'ContactPoint', 'Audience', str]], 'Organization', 'Person', 'ContactPoint', 'Audience', str]] = Field( + type_: str = Field(default="ReturnAction", alias='@type', const=True) + recipient: Optional[Union[List[Union['ContactPoint', 'Audience', 'Organization', 'Person', str]], 'ContactPoint', 'Audience', 'Organization', 'Person', str]] = Field( default=None, description="A sub property of participant. The participant who is at the receiving end of the action.", ) if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization - from pydantic_schemaorg.Person import Person from pydantic_schemaorg.ContactPoint import ContactPoint from pydantic_schemaorg.Audience import Audience + from pydantic_schemaorg.Organization import Organization + from pydantic_schemaorg.Person import Person diff --git a/pydantic_schemaorg/ReturnAtKiosk.py b/pydantic_schemaorg/ReturnAtKiosk.py index 3a1f0594..9d666e2e 100644 --- a/pydantic_schemaorg/ReturnAtKiosk.py +++ b/pydantic_schemaorg/ReturnAtKiosk.py @@ -11,5 +11,5 @@ class ReturnAtKiosk(ReturnMethodEnumeration): See: https://schema.org/ReturnAtKiosk Model depth: 5 """ - type_: str = Field(default="ReturnAtKiosk", alias='@type', constant=True) + type_: str = Field(default="ReturnAtKiosk", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReturnByMail.py b/pydantic_schemaorg/ReturnByMail.py index b13c331f..3605a471 100644 --- a/pydantic_schemaorg/ReturnByMail.py +++ b/pydantic_schemaorg/ReturnByMail.py @@ -11,5 +11,5 @@ class ReturnByMail(ReturnMethodEnumeration): See: https://schema.org/ReturnByMail Model depth: 5 """ - type_: str = Field(default="ReturnByMail", alias='@type', constant=True) + type_: str = Field(default="ReturnByMail", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReturnFeesCustomerResponsibility.py b/pydantic_schemaorg/ReturnFeesCustomerResponsibility.py index d4213482..433fe1eb 100644 --- a/pydantic_schemaorg/ReturnFeesCustomerResponsibility.py +++ b/pydantic_schemaorg/ReturnFeesCustomerResponsibility.py @@ -11,5 +11,5 @@ class ReturnFeesCustomerResponsibility(ReturnFeesEnumeration): See: https://schema.org/ReturnFeesCustomerResponsibility Model depth: 5 """ - type_: str = Field(default="ReturnFeesCustomerResponsibility", alias='@type', constant=True) + type_: str = Field(default="ReturnFeesCustomerResponsibility", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReturnFeesEnumeration.py b/pydantic_schemaorg/ReturnFeesEnumeration.py index 18678f93..e1c4deed 100644 --- a/pydantic_schemaorg/ReturnFeesEnumeration.py +++ b/pydantic_schemaorg/ReturnFeesEnumeration.py @@ -11,5 +11,5 @@ class ReturnFeesEnumeration(Enumeration): See: https://schema.org/ReturnFeesEnumeration Model depth: 4 """ - type_: str = Field(default="ReturnFeesEnumeration", alias='@type', constant=True) + type_: str = Field(default="ReturnFeesEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReturnInStore.py b/pydantic_schemaorg/ReturnInStore.py index ce615bdd..3152ddc1 100644 --- a/pydantic_schemaorg/ReturnInStore.py +++ b/pydantic_schemaorg/ReturnInStore.py @@ -11,5 +11,5 @@ class ReturnInStore(ReturnMethodEnumeration): See: https://schema.org/ReturnInStore Model depth: 5 """ - type_: str = Field(default="ReturnInStore", alias='@type', constant=True) + type_: str = Field(default="ReturnInStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReturnLabelCustomerResponsibility.py b/pydantic_schemaorg/ReturnLabelCustomerResponsibility.py index 3780022d..e7e938d0 100644 --- a/pydantic_schemaorg/ReturnLabelCustomerResponsibility.py +++ b/pydantic_schemaorg/ReturnLabelCustomerResponsibility.py @@ -11,5 +11,5 @@ class ReturnLabelCustomerResponsibility(ReturnLabelSourceEnumeration): See: https://schema.org/ReturnLabelCustomerResponsibility Model depth: 5 """ - type_: str = Field(default="ReturnLabelCustomerResponsibility", alias='@type', constant=True) + type_: str = Field(default="ReturnLabelCustomerResponsibility", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReturnLabelDownloadAndPrint.py b/pydantic_schemaorg/ReturnLabelDownloadAndPrint.py index d4799fce..83cbda72 100644 --- a/pydantic_schemaorg/ReturnLabelDownloadAndPrint.py +++ b/pydantic_schemaorg/ReturnLabelDownloadAndPrint.py @@ -11,5 +11,5 @@ class ReturnLabelDownloadAndPrint(ReturnLabelSourceEnumeration): See: https://schema.org/ReturnLabelDownloadAndPrint Model depth: 5 """ - type_: str = Field(default="ReturnLabelDownloadAndPrint", alias='@type', constant=True) + type_: str = Field(default="ReturnLabelDownloadAndPrint", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReturnLabelInBox.py b/pydantic_schemaorg/ReturnLabelInBox.py index 3b63f46c..920d6e9a 100644 --- a/pydantic_schemaorg/ReturnLabelInBox.py +++ b/pydantic_schemaorg/ReturnLabelInBox.py @@ -11,5 +11,5 @@ class ReturnLabelInBox(ReturnLabelSourceEnumeration): See: https://schema.org/ReturnLabelInBox Model depth: 5 """ - type_: str = Field(default="ReturnLabelInBox", alias='@type', constant=True) + type_: str = Field(default="ReturnLabelInBox", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReturnLabelSourceEnumeration.py b/pydantic_schemaorg/ReturnLabelSourceEnumeration.py index 0fc3a5a7..240aa001 100644 --- a/pydantic_schemaorg/ReturnLabelSourceEnumeration.py +++ b/pydantic_schemaorg/ReturnLabelSourceEnumeration.py @@ -11,5 +11,5 @@ class ReturnLabelSourceEnumeration(Enumeration): See: https://schema.org/ReturnLabelSourceEnumeration Model depth: 4 """ - type_: str = Field(default="ReturnLabelSourceEnumeration", alias='@type', constant=True) + type_: str = Field(default="ReturnLabelSourceEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReturnMethodEnumeration.py b/pydantic_schemaorg/ReturnMethodEnumeration.py index 4a2dcd1c..7c30ff49 100644 --- a/pydantic_schemaorg/ReturnMethodEnumeration.py +++ b/pydantic_schemaorg/ReturnMethodEnumeration.py @@ -11,5 +11,5 @@ class ReturnMethodEnumeration(Enumeration): See: https://schema.org/ReturnMethodEnumeration Model depth: 4 """ - type_: str = Field(default="ReturnMethodEnumeration", alias='@type', constant=True) + type_: str = Field(default="ReturnMethodEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/ReturnShippingFees.py b/pydantic_schemaorg/ReturnShippingFees.py index 552516ba..7e84a369 100644 --- a/pydantic_schemaorg/ReturnShippingFees.py +++ b/pydantic_schemaorg/ReturnShippingFees.py @@ -11,5 +11,5 @@ class ReturnShippingFees(ReturnFeesEnumeration): See: https://schema.org/ReturnShippingFees Model depth: 5 """ - type_: str = Field(default="ReturnShippingFees", alias='@type', constant=True) + type_: str = Field(default="ReturnShippingFees", alias='@type', const=True) diff --git a/pydantic_schemaorg/Review.py b/pydantic_schemaorg/Review.py index 66291fca..bbf6fd0f 100644 --- a/pydantic_schemaorg/Review.py +++ b/pydantic_schemaorg/Review.py @@ -14,7 +14,7 @@ class Review(CreativeWork): See: https://schema.org/Review Model depth: 3 """ - type_: str = Field(default="Review", alias='@type', constant=True) + type_: str = Field(default="Review", alias='@type', const=True) associatedMediaReview: Optional[Union[List[Union['Review', str]], 'Review', str]] = Field( default=None, description="An associated [[MediaReview]], related by specific common content, topic or claim." @@ -54,7 +54,7 @@ class Review(CreativeWork): default=None, description="The actual body of the review.", ) - negativeNotes: Optional[Union[List[Union[str, 'Text', 'ListItem', 'ItemList', 'WebContent']], str, 'Text', 'ListItem', 'ItemList', 'WebContent']] = Field( + negativeNotes: Optional[Union[List[Union[str, 'Text', 'ListItem', 'WebContent', 'ItemList']], str, 'Text', 'ListItem', 'WebContent', 'ItemList']] = Field( default=None, description="Indicates, in the context of a [[Review]] (e.g. framed as 'pro' vs 'con' considerations)," "negative considerations - either as unstructured text, or a list.", diff --git a/pydantic_schemaorg/ReviewAction.py b/pydantic_schemaorg/ReviewAction.py index 391ab1d0..4df8f332 100644 --- a/pydantic_schemaorg/ReviewAction.py +++ b/pydantic_schemaorg/ReviewAction.py @@ -15,7 +15,7 @@ class ReviewAction(AssessAction): See: https://schema.org/ReviewAction Model depth: 4 """ - type_: str = Field(default="ReviewAction", alias='@type', constant=True) + type_: str = Field(default="ReviewAction", alias='@type', const=True) resultReview: Optional[Union[List[Union['Review', str]], 'Review', str]] = Field( default=None, description="A sub property of result. The review that resulted in the performing of the action.", diff --git a/pydantic_schemaorg/ReviewNewsArticle.py b/pydantic_schemaorg/ReviewNewsArticle.py index f1e4c197..0f134b46 100644 --- a/pydantic_schemaorg/ReviewNewsArticle.py +++ b/pydantic_schemaorg/ReviewNewsArticle.py @@ -2,16 +2,16 @@ from pydantic import Field -from pydantic_schemaorg.CriticReview import CriticReview from pydantic_schemaorg.NewsArticle import NewsArticle +from pydantic_schemaorg.CriticReview import CriticReview -class ReviewNewsArticle(CriticReview, NewsArticle): +class ReviewNewsArticle(NewsArticle, CriticReview): """A [[NewsArticle]] and [[CriticReview]] providing a professional critic's assessment" "of a service, product, performance, or artistic or literary work. See: https://schema.org/ReviewNewsArticle Model depth: 5 """ - type_: str = Field(default="ReviewNewsArticle", alias='@type', constant=True) + type_: str = Field(default="ReviewNewsArticle", alias='@type', const=True) diff --git a/pydantic_schemaorg/Rheumatologic.py b/pydantic_schemaorg/Rheumatologic.py index 1fe8811e..753a122e 100644 --- a/pydantic_schemaorg/Rheumatologic.py +++ b/pydantic_schemaorg/Rheumatologic.py @@ -12,5 +12,5 @@ class Rheumatologic(MedicalSpecialty): See: https://schema.org/Rheumatologic Model depth: 6 """ - type_: str = Field(default="Rheumatologic", alias='@type', constant=True) + type_: str = Field(default="Rheumatologic", alias='@type', const=True) diff --git a/pydantic_schemaorg/RightHandDriving.py b/pydantic_schemaorg/RightHandDriving.py index f04ced69..95ae9240 100644 --- a/pydantic_schemaorg/RightHandDriving.py +++ b/pydantic_schemaorg/RightHandDriving.py @@ -12,5 +12,5 @@ class RightHandDriving(SteeringPositionValue): See: https://schema.org/RightHandDriving Model depth: 6 """ - type_: str = Field(default="RightHandDriving", alias='@type', constant=True) + type_: str = Field(default="RightHandDriving", alias='@type', const=True) diff --git a/pydantic_schemaorg/RisksOrComplicationsHealthAspect.py b/pydantic_schemaorg/RisksOrComplicationsHealthAspect.py index e6f373cc..cef494b1 100644 --- a/pydantic_schemaorg/RisksOrComplicationsHealthAspect.py +++ b/pydantic_schemaorg/RisksOrComplicationsHealthAspect.py @@ -11,5 +11,5 @@ class RisksOrComplicationsHealthAspect(HealthAspectEnumeration): See: https://schema.org/RisksOrComplicationsHealthAspect Model depth: 5 """ - type_: str = Field(default="RisksOrComplicationsHealthAspect", alias='@type', constant=True) + type_: str = Field(default="RisksOrComplicationsHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/RiverBodyOfWater.py b/pydantic_schemaorg/RiverBodyOfWater.py index 7323a1ae..cae5c5b2 100644 --- a/pydantic_schemaorg/RiverBodyOfWater.py +++ b/pydantic_schemaorg/RiverBodyOfWater.py @@ -11,5 +11,5 @@ class RiverBodyOfWater(BodyOfWater): See: https://schema.org/RiverBodyOfWater Model depth: 5 """ - type_: str = Field(default="RiverBodyOfWater", alias='@type', constant=True) + type_: str = Field(default="RiverBodyOfWater", alias='@type', const=True) diff --git a/pydantic_schemaorg/Role.py b/pydantic_schemaorg/Role.py index 6f270629..25c790af 100644 --- a/pydantic_schemaorg/Role.py +++ b/pydantic_schemaorg/Role.py @@ -21,7 +21,7 @@ class Role(Intangible): See: https://schema.org/Role Model depth: 3 """ - type_: str = Field(default="Role", alias='@type', constant=True) + type_: str = Field(default="Role", alias='@type', const=True) roleName: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text']], AnyUrl, 'URL', str, 'Text']] = Field( default=None, description="A role played, performed or filled by a person or organization. For example, the team" diff --git a/pydantic_schemaorg/RoofingContractor.py b/pydantic_schemaorg/RoofingContractor.py index 25fd26b7..98eda51a 100644 --- a/pydantic_schemaorg/RoofingContractor.py +++ b/pydantic_schemaorg/RoofingContractor.py @@ -11,5 +11,5 @@ class RoofingContractor(HomeAndConstructionBusiness): See: https://schema.org/RoofingContractor Model depth: 5 """ - type_: str = Field(default="RoofingContractor", alias='@type', constant=True) + type_: str = Field(default="RoofingContractor", alias='@type', const=True) diff --git a/pydantic_schemaorg/Room.py b/pydantic_schemaorg/Room.py index 90dcfc7a..80c8a865 100644 --- a/pydantic_schemaorg/Room.py +++ b/pydantic_schemaorg/Room.py @@ -14,5 +14,5 @@ class Room(Accommodation): See: https://schema.org/Room Model depth: 4 """ - type_: str = Field(default="Room", alias='@type', constant=True) + type_: str = Field(default="Room", alias='@type', const=True) diff --git a/pydantic_schemaorg/RsvpAction.py b/pydantic_schemaorg/RsvpAction.py index 46a796d8..42265f66 100644 --- a/pydantic_schemaorg/RsvpAction.py +++ b/pydantic_schemaorg/RsvpAction.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -15,8 +15,8 @@ class RsvpAction(InformAction): See: https://schema.org/RsvpAction Model depth: 6 """ - type_: str = Field(default="RsvpAction", alias='@type', constant=True) - additionalNumberOfGuests: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + type_: str = Field(default="RsvpAction", alias='@type', const=True) + additionalNumberOfGuests: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="If responding yes, the number of guests who will attend in addition to the invitee.", ) diff --git a/pydantic_schemaorg/RsvpResponseMaybe.py b/pydantic_schemaorg/RsvpResponseMaybe.py index 82a5b818..95246928 100644 --- a/pydantic_schemaorg/RsvpResponseMaybe.py +++ b/pydantic_schemaorg/RsvpResponseMaybe.py @@ -11,5 +11,5 @@ class RsvpResponseMaybe(RsvpResponseType): See: https://schema.org/RsvpResponseMaybe Model depth: 5 """ - type_: str = Field(default="RsvpResponseMaybe", alias='@type', constant=True) + type_: str = Field(default="RsvpResponseMaybe", alias='@type', const=True) diff --git a/pydantic_schemaorg/RsvpResponseNo.py b/pydantic_schemaorg/RsvpResponseNo.py index 86d75705..ac3a0e8c 100644 --- a/pydantic_schemaorg/RsvpResponseNo.py +++ b/pydantic_schemaorg/RsvpResponseNo.py @@ -11,5 +11,5 @@ class RsvpResponseNo(RsvpResponseType): See: https://schema.org/RsvpResponseNo Model depth: 5 """ - type_: str = Field(default="RsvpResponseNo", alias='@type', constant=True) + type_: str = Field(default="RsvpResponseNo", alias='@type', const=True) diff --git a/pydantic_schemaorg/RsvpResponseType.py b/pydantic_schemaorg/RsvpResponseType.py index 219335e5..a0dbde93 100644 --- a/pydantic_schemaorg/RsvpResponseType.py +++ b/pydantic_schemaorg/RsvpResponseType.py @@ -12,5 +12,5 @@ class RsvpResponseType(Enumeration): See: https://schema.org/RsvpResponseType Model depth: 4 """ - type_: str = Field(default="RsvpResponseType", alias='@type', constant=True) + type_: str = Field(default="RsvpResponseType", alias='@type', const=True) diff --git a/pydantic_schemaorg/RsvpResponseYes.py b/pydantic_schemaorg/RsvpResponseYes.py index 92e0a53c..2ec725b5 100644 --- a/pydantic_schemaorg/RsvpResponseYes.py +++ b/pydantic_schemaorg/RsvpResponseYes.py @@ -11,5 +11,5 @@ class RsvpResponseYes(RsvpResponseType): See: https://schema.org/RsvpResponseYes Model depth: 5 """ - type_: str = Field(default="RsvpResponseYes", alias='@type', constant=True) + type_: str = Field(default="RsvpResponseYes", alias='@type', const=True) diff --git a/pydantic_schemaorg/SRP.py b/pydantic_schemaorg/SRP.py index 5072de2c..13468395 100644 --- a/pydantic_schemaorg/SRP.py +++ b/pydantic_schemaorg/SRP.py @@ -11,5 +11,5 @@ class SRP(PriceTypeEnumeration): See: https://schema.org/SRP Model depth: 5 """ - type_: str = Field(default="SRP", alias='@type', constant=True) + type_: str = Field(default="SRP", alias='@type', const=True) diff --git a/pydantic_schemaorg/SafetyHealthAspect.py b/pydantic_schemaorg/SafetyHealthAspect.py index 1e104aad..1396357b 100644 --- a/pydantic_schemaorg/SafetyHealthAspect.py +++ b/pydantic_schemaorg/SafetyHealthAspect.py @@ -11,5 +11,5 @@ class SafetyHealthAspect(HealthAspectEnumeration): See: https://schema.org/SafetyHealthAspect Model depth: 5 """ - type_: str = Field(default="SafetyHealthAspect", alias='@type', constant=True) + type_: str = Field(default="SafetyHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/SaleEvent.py b/pydantic_schemaorg/SaleEvent.py index baf88c1d..bd413122 100644 --- a/pydantic_schemaorg/SaleEvent.py +++ b/pydantic_schemaorg/SaleEvent.py @@ -11,5 +11,5 @@ class SaleEvent(Event): See: https://schema.org/SaleEvent Model depth: 3 """ - type_: str = Field(default="SaleEvent", alias='@type', constant=True) + type_: str = Field(default="SaleEvent", alias='@type', const=True) diff --git a/pydantic_schemaorg/SalePrice.py b/pydantic_schemaorg/SalePrice.py index 7d4dbf24..b5e417a0 100644 --- a/pydantic_schemaorg/SalePrice.py +++ b/pydantic_schemaorg/SalePrice.py @@ -11,5 +11,5 @@ class SalePrice(PriceTypeEnumeration): See: https://schema.org/SalePrice Model depth: 5 """ - type_: str = Field(default="SalePrice", alias='@type', constant=True) + type_: str = Field(default="SalePrice", alias='@type', const=True) diff --git a/pydantic_schemaorg/SatireOrParodyContent.py b/pydantic_schemaorg/SatireOrParodyContent.py index a17c1928..dd8ad289 100644 --- a/pydantic_schemaorg/SatireOrParodyContent.py +++ b/pydantic_schemaorg/SatireOrParodyContent.py @@ -25,5 +25,5 @@ class SatireOrParodyContent(MediaManipulationRatingEnumeration): See: https://schema.org/SatireOrParodyContent Model depth: 5 """ - type_: str = Field(default="SatireOrParodyContent", alias='@type', constant=True) + type_: str = Field(default="SatireOrParodyContent", alias='@type', const=True) diff --git a/pydantic_schemaorg/SatiricalArticle.py b/pydantic_schemaorg/SatiricalArticle.py index 84e3041e..f7e24db9 100644 --- a/pydantic_schemaorg/SatiricalArticle.py +++ b/pydantic_schemaorg/SatiricalArticle.py @@ -13,5 +13,5 @@ class SatiricalArticle(Article): See: https://schema.org/SatiricalArticle Model depth: 4 """ - type_: str = Field(default="SatiricalArticle", alias='@type', constant=True) + type_: str = Field(default="SatiricalArticle", alias='@type', const=True) diff --git a/pydantic_schemaorg/Saturday.py b/pydantic_schemaorg/Saturday.py index 2bbe9961..4371042e 100644 --- a/pydantic_schemaorg/Saturday.py +++ b/pydantic_schemaorg/Saturday.py @@ -11,5 +11,5 @@ class Saturday(DayOfWeek): See: https://schema.org/Saturday Model depth: 5 """ - type_: str = Field(default="Saturday", alias='@type', constant=True) + type_: str = Field(default="Saturday", alias='@type', const=True) diff --git a/pydantic_schemaorg/Schedule.py b/pydantic_schemaorg/Schedule.py index 4db48f9f..a919cc05 100644 --- a/pydantic_schemaorg/Schedule.py +++ b/pydantic_schemaorg/Schedule.py @@ -21,7 +21,7 @@ class Schedule(Intangible): See: https://schema.org/Schedule Model depth: 3 """ - type_: str = Field(default="Schedule", alias='@type', constant=True) + type_: str = Field(default="Schedule", alias='@type', const=True) exceptDate: Optional[Union[List[Union[datetime, 'DateTime', date, 'Date', str]], datetime, 'DateTime', date, 'Date', str]] = Field( default=None, description="Defines a [[Date]] or [[DateTime]] during which a scheduled [[Event]] will not take" diff --git a/pydantic_schemaorg/ScheduleAction.py b/pydantic_schemaorg/ScheduleAction.py index 6a716b82..ff217dfa 100644 --- a/pydantic_schemaorg/ScheduleAction.py +++ b/pydantic_schemaorg/ScheduleAction.py @@ -13,5 +13,5 @@ class ScheduleAction(PlanAction): See: https://schema.org/ScheduleAction Model depth: 5 """ - type_: str = Field(default="ScheduleAction", alias='@type', constant=True) + type_: str = Field(default="ScheduleAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/SchemaOrgBase.py b/pydantic_schemaorg/SchemaOrgBase.py index 6cba34bd..731f0a63 100644 --- a/pydantic_schemaorg/SchemaOrgBase.py +++ b/pydantic_schemaorg/SchemaOrgBase.py @@ -2,7 +2,7 @@ from decimal import Decimal from typing import Any, Optional, ForwardRef, List, Union -from pydantic import BaseModel, Field, StrictBool, AnyUrl +from pydantic import BaseModel, Field, StrictBool, AnyUrl, StrictInt, StrictFloat from pydantic.typing import update_model_forward_refs from pydantic_schemaorg.ISO8601.ISO8601Date import ISO8601Date @@ -65,7 +65,7 @@ def update_forward_refs(cls, **localns: Any) -> None: Try to update ForwardRefs on fields based on this Model, globalns and localns. """ locals = {'Optional': Optional, 'List': List, 'Union': Union, 'StrictBool': StrictBool, 'AnyUrl': AnyUrl, - 'Decimal': Decimal, 'time': time, 'datetime': datetime, 'date': date,'ISO8601Date':ISO8601Date} + 'Decimal': Decimal, 'time': time, 'datetime': datetime, 'date': date,'ISO8601Date':ISO8601Date, 'StrictInt':StrictInt, 'StrictFloat': StrictFloat} for cls_ in cls.mro(): if hasattr(cls_, 'get_local_ns'): locals.update(cls_.get_local_ns()) diff --git a/pydantic_schemaorg/ScholarlyArticle.py b/pydantic_schemaorg/ScholarlyArticle.py index 5ca3d8c7..fbe72654 100644 --- a/pydantic_schemaorg/ScholarlyArticle.py +++ b/pydantic_schemaorg/ScholarlyArticle.py @@ -11,5 +11,5 @@ class ScholarlyArticle(Article): See: https://schema.org/ScholarlyArticle Model depth: 4 """ - type_: str = Field(default="ScholarlyArticle", alias='@type', constant=True) + type_: str = Field(default="ScholarlyArticle", alias='@type', const=True) diff --git a/pydantic_schemaorg/School.py b/pydantic_schemaorg/School.py index eafb56d3..2590d566 100644 --- a/pydantic_schemaorg/School.py +++ b/pydantic_schemaorg/School.py @@ -11,5 +11,5 @@ class School(EducationalOrganization): See: https://schema.org/School Model depth: 4 """ - type_: str = Field(default="School", alias='@type', constant=True) + type_: str = Field(default="School", alias='@type', const=True) diff --git a/pydantic_schemaorg/SchoolDistrict.py b/pydantic_schemaorg/SchoolDistrict.py index 59602e9f..0db48b2e 100644 --- a/pydantic_schemaorg/SchoolDistrict.py +++ b/pydantic_schemaorg/SchoolDistrict.py @@ -11,5 +11,5 @@ class SchoolDistrict(AdministrativeArea): See: https://schema.org/SchoolDistrict Model depth: 4 """ - type_: str = Field(default="SchoolDistrict", alias='@type', constant=True) + type_: str = Field(default="SchoolDistrict", alias='@type', const=True) diff --git a/pydantic_schemaorg/ScreeningEvent.py b/pydantic_schemaorg/ScreeningEvent.py index ebfaea01..d4acdba4 100644 --- a/pydantic_schemaorg/ScreeningEvent.py +++ b/pydantic_schemaorg/ScreeningEvent.py @@ -14,7 +14,7 @@ class ScreeningEvent(Event): See: https://schema.org/ScreeningEvent Model depth: 3 """ - type_: str = Field(default="ScreeningEvent", alias='@type', constant=True) + type_: str = Field(default="ScreeningEvent", alias='@type', const=True) workPresented: Optional[Union[List[Union['Movie', str]], 'Movie', str]] = Field( default=None, description="The movie presented during this event.", diff --git a/pydantic_schemaorg/ScreeningHealthAspect.py b/pydantic_schemaorg/ScreeningHealthAspect.py index e845a780..b4fb70a8 100644 --- a/pydantic_schemaorg/ScreeningHealthAspect.py +++ b/pydantic_schemaorg/ScreeningHealthAspect.py @@ -11,5 +11,5 @@ class ScreeningHealthAspect(HealthAspectEnumeration): See: https://schema.org/ScreeningHealthAspect Model depth: 5 """ - type_: str = Field(default="ScreeningHealthAspect", alias='@type', constant=True) + type_: str = Field(default="ScreeningHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/Sculpture.py b/pydantic_schemaorg/Sculpture.py index ff560469..10a4d235 100644 --- a/pydantic_schemaorg/Sculpture.py +++ b/pydantic_schemaorg/Sculpture.py @@ -11,5 +11,5 @@ class Sculpture(CreativeWork): See: https://schema.org/Sculpture Model depth: 3 """ - type_: str = Field(default="Sculpture", alias='@type', constant=True) + type_: str = Field(default="Sculpture", alias='@type', const=True) diff --git a/pydantic_schemaorg/SeaBodyOfWater.py b/pydantic_schemaorg/SeaBodyOfWater.py index 89dc464c..6f5007cd 100644 --- a/pydantic_schemaorg/SeaBodyOfWater.py +++ b/pydantic_schemaorg/SeaBodyOfWater.py @@ -11,5 +11,5 @@ class SeaBodyOfWater(BodyOfWater): See: https://schema.org/SeaBodyOfWater Model depth: 5 """ - type_: str = Field(default="SeaBodyOfWater", alias='@type', constant=True) + type_: str = Field(default="SeaBodyOfWater", alias='@type', const=True) diff --git a/pydantic_schemaorg/SearchAction.py b/pydantic_schemaorg/SearchAction.py index cb0e1fce..7dc225bc 100644 --- a/pydantic_schemaorg/SearchAction.py +++ b/pydantic_schemaorg/SearchAction.py @@ -15,7 +15,7 @@ class SearchAction(Action): See: https://schema.org/SearchAction Model depth: 3 """ - type_: str = Field(default="SearchAction", alias='@type', constant=True) + type_: str = Field(default="SearchAction", alias='@type', const=True) query: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="A sub property of instrument. The query used on this action.", diff --git a/pydantic_schemaorg/SearchResultsPage.py b/pydantic_schemaorg/SearchResultsPage.py index 32e0d6c7..96183eb8 100644 --- a/pydantic_schemaorg/SearchResultsPage.py +++ b/pydantic_schemaorg/SearchResultsPage.py @@ -11,5 +11,5 @@ class SearchResultsPage(WebPage): See: https://schema.org/SearchResultsPage Model depth: 4 """ - type_: str = Field(default="SearchResultsPage", alias='@type', constant=True) + type_: str = Field(default="SearchResultsPage", alias='@type', const=True) diff --git a/pydantic_schemaorg/Season.py b/pydantic_schemaorg/Season.py index 47f8b2c3..3cca6cc6 100644 --- a/pydantic_schemaorg/Season.py +++ b/pydantic_schemaorg/Season.py @@ -11,5 +11,5 @@ class Season(CreativeWork): See: https://schema.org/Season Model depth: 3 """ - type_: str = Field(default="Season", alias='@type', constant=True) + type_: str = Field(default="Season", alias='@type', const=True) diff --git a/pydantic_schemaorg/Seat.py b/pydantic_schemaorg/Seat.py index 2d2d2214..d77487f7 100644 --- a/pydantic_schemaorg/Seat.py +++ b/pydantic_schemaorg/Seat.py @@ -14,7 +14,7 @@ class Seat(Intangible): See: https://schema.org/Seat Model depth: 3 """ - type_: str = Field(default="Seat", alias='@type', constant=True) + type_: str = Field(default="Seat", alias='@type', const=True) seatNumber: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The location of the reserved seat (e.g., 27).", diff --git a/pydantic_schemaorg/SeatingMap.py b/pydantic_schemaorg/SeatingMap.py index dc22cd59..e5b39095 100644 --- a/pydantic_schemaorg/SeatingMap.py +++ b/pydantic_schemaorg/SeatingMap.py @@ -11,5 +11,5 @@ class SeatingMap(MapCategoryType): See: https://schema.org/SeatingMap Model depth: 5 """ - type_: str = Field(default="SeatingMap", alias='@type', constant=True) + type_: str = Field(default="SeatingMap", alias='@type', const=True) diff --git a/pydantic_schemaorg/SeeDoctorHealthAspect.py b/pydantic_schemaorg/SeeDoctorHealthAspect.py index b8fc4aa3..46406620 100644 --- a/pydantic_schemaorg/SeeDoctorHealthAspect.py +++ b/pydantic_schemaorg/SeeDoctorHealthAspect.py @@ -12,5 +12,5 @@ class SeeDoctorHealthAspect(HealthAspectEnumeration): See: https://schema.org/SeeDoctorHealthAspect Model depth: 5 """ - type_: str = Field(default="SeeDoctorHealthAspect", alias='@type', constant=True) + type_: str = Field(default="SeeDoctorHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/SeekToAction.py b/pydantic_schemaorg/SeekToAction.py index 6c535856..2975868c 100644 --- a/pydantic_schemaorg/SeekToAction.py +++ b/pydantic_schemaorg/SeekToAction.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -16,8 +16,8 @@ class SeekToAction(Action): See: https://schema.org/SeekToAction Model depth: 3 """ - type_: str = Field(default="SeekToAction", alias='@type', constant=True) - startOffset: Optional[Union[List[Union[int, float, 'Number', 'HyperTocEntry', str]], int, float, 'Number', 'HyperTocEntry', str]] = Field( + type_: str = Field(default="SeekToAction", alias='@type', const=True) + startOffset: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'HyperTocEntry', str]], StrictInt, StrictFloat, 'Number', 'HyperTocEntry', str]] = Field( default=None, description="The start time of the clip expressed as the number of seconds from the beginning of the" "work.", diff --git a/pydantic_schemaorg/SelfCareHealthAspect.py b/pydantic_schemaorg/SelfCareHealthAspect.py index cf3c5727..731e8a23 100644 --- a/pydantic_schemaorg/SelfCareHealthAspect.py +++ b/pydantic_schemaorg/SelfCareHealthAspect.py @@ -12,5 +12,5 @@ class SelfCareHealthAspect(HealthAspectEnumeration): See: https://schema.org/SelfCareHealthAspect Model depth: 5 """ - type_: str = Field(default="SelfCareHealthAspect", alias='@type', constant=True) + type_: str = Field(default="SelfCareHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/SelfStorage.py b/pydantic_schemaorg/SelfStorage.py index 81f600cf..27e1f9d0 100644 --- a/pydantic_schemaorg/SelfStorage.py +++ b/pydantic_schemaorg/SelfStorage.py @@ -11,5 +11,5 @@ class SelfStorage(LocalBusiness): See: https://schema.org/SelfStorage Model depth: 4 """ - type_: str = Field(default="SelfStorage", alias='@type', constant=True) + type_: str = Field(default="SelfStorage", alias='@type', const=True) diff --git a/pydantic_schemaorg/SellAction.py b/pydantic_schemaorg/SellAction.py index dde0f0bb..ae049bfd 100644 --- a/pydantic_schemaorg/SellAction.py +++ b/pydantic_schemaorg/SellAction.py @@ -15,8 +15,8 @@ class SellAction(TradeAction): See: https://schema.org/SellAction Model depth: 4 """ - type_: str = Field(default="SellAction", alias='@type', constant=True) - buyer: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + type_: str = Field(default="SellAction", alias='@type', const=True) + buyer: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="A sub property of participant. The participant/person/organization that bought the" "object.", @@ -28,6 +28,6 @@ class SellAction(TradeAction): if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.WarrantyPromise import WarrantyPromise diff --git a/pydantic_schemaorg/SendAction.py b/pydantic_schemaorg/SendAction.py index 0854d1bb..eede8514 100644 --- a/pydantic_schemaorg/SendAction.py +++ b/pydantic_schemaorg/SendAction.py @@ -17,8 +17,8 @@ class SendAction(TransferAction): See: https://schema.org/SendAction Model depth: 4 """ - type_: str = Field(default="SendAction", alias='@type', constant=True) - recipient: Optional[Union[List[Union['Organization', 'Person', 'ContactPoint', 'Audience', str]], 'Organization', 'Person', 'ContactPoint', 'Audience', str]] = Field( + type_: str = Field(default="SendAction", alias='@type', const=True) + recipient: Optional[Union[List[Union['ContactPoint', 'Audience', 'Organization', 'Person', str]], 'ContactPoint', 'Audience', 'Organization', 'Person', str]] = Field( default=None, description="A sub property of participant. The participant who is at the receiving end of the action.", ) @@ -29,8 +29,8 @@ class SendAction(TransferAction): if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization - from pydantic_schemaorg.Person import Person from pydantic_schemaorg.ContactPoint import ContactPoint from pydantic_schemaorg.Audience import Audience + from pydantic_schemaorg.Organization import Organization + from pydantic_schemaorg.Person import Person from pydantic_schemaorg.DeliveryMethod import DeliveryMethod diff --git a/pydantic_schemaorg/Series.py b/pydantic_schemaorg/Series.py index 40fcacd2..48c08d26 100644 --- a/pydantic_schemaorg/Series.py +++ b/pydantic_schemaorg/Series.py @@ -12,5 +12,5 @@ class Series(Intangible): See: https://schema.org/Series Model depth: 3 """ - type_: str = Field(default="Series", alias='@type', constant=True) + type_: str = Field(default="Series", alias='@type', const=True) diff --git a/pydantic_schemaorg/Service.py b/pydantic_schemaorg/Service.py index 011f3d20..4bc62e61 100644 --- a/pydantic_schemaorg/Service.py +++ b/pydantic_schemaorg/Service.py @@ -15,7 +15,7 @@ class Service(Intangible): See: https://schema.org/Service Model depth: 3 """ - type_: str = Field(default="Service", alias='@type', constant=True) + type_: str = Field(default="Service", alias='@type', const=True) offers: Optional[Union[List[Union['Offer', 'Demand', str]], 'Offer', 'Demand', str]] = Field( default=None, description="An offer to provide this item—for example, an offer to sell a product, rent the" @@ -58,7 +58,7 @@ class Service(Intangible): description="The brand(s) associated with a product or service, or the brand(s) maintained by an organization" "or business person.", ) - category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']], AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']] = Field( + category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']], AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']] = Field( default=None, description="A category for the item. Greater signs or slashes can be used to informally indicate a" "category hierarchy.", @@ -103,7 +103,7 @@ class Service(Intangible): default=None, description="A review of the item.", ) - provider: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + provider: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The service provider, service operator, or service performer; the goods producer." "Another party (a seller) may offer those services or goods on behalf of the provider." @@ -113,7 +113,7 @@ class Service(Intangible): default=None, description="A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).", ) - broker: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + broker: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="An entity that arranges for an exchange between a buyer and a seller. In most cases a broker" "never acquires or releases ownership of a product or service involved in an exchange." diff --git a/pydantic_schemaorg/ServiceChannel.py b/pydantic_schemaorg/ServiceChannel.py index 290a8b42..f0a0c9a4 100644 --- a/pydantic_schemaorg/ServiceChannel.py +++ b/pydantic_schemaorg/ServiceChannel.py @@ -16,7 +16,7 @@ class ServiceChannel(Intangible): See: https://schema.org/ServiceChannel Model depth: 3 """ - type_: str = Field(default="ServiceChannel", alias='@type', constant=True) + type_: str = Field(default="ServiceChannel", alias='@type', const=True) processingTime: Optional[Union[List[Union['Duration', str]], 'Duration', str]] = Field( default=None, description="Estimated processing time for the service using this channel.", diff --git a/pydantic_schemaorg/ShareAction.py b/pydantic_schemaorg/ShareAction.py index eb001cd0..0e469832 100644 --- a/pydantic_schemaorg/ShareAction.py +++ b/pydantic_schemaorg/ShareAction.py @@ -11,5 +11,5 @@ class ShareAction(CommunicateAction): See: https://schema.org/ShareAction Model depth: 5 """ - type_: str = Field(default="ShareAction", alias='@type', constant=True) + type_: str = Field(default="ShareAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/SheetMusic.py b/pydantic_schemaorg/SheetMusic.py index dd9365e9..d771b5c7 100644 --- a/pydantic_schemaorg/SheetMusic.py +++ b/pydantic_schemaorg/SheetMusic.py @@ -11,5 +11,5 @@ class SheetMusic(CreativeWork): See: https://schema.org/SheetMusic Model depth: 3 """ - type_: str = Field(default="SheetMusic", alias='@type', constant=True) + type_: str = Field(default="SheetMusic", alias='@type', const=True) diff --git a/pydantic_schemaorg/ShippingDeliveryTime.py b/pydantic_schemaorg/ShippingDeliveryTime.py index 5798c41c..8e501654 100644 --- a/pydantic_schemaorg/ShippingDeliveryTime.py +++ b/pydantic_schemaorg/ShippingDeliveryTime.py @@ -16,7 +16,7 @@ class ShippingDeliveryTime(StructuredValue): See: https://schema.org/ShippingDeliveryTime Model depth: 4 """ - type_: str = Field(default="ShippingDeliveryTime", alias='@type', constant=True) + type_: str = Field(default="ShippingDeliveryTime", alias='@type', const=True) transitTime: Optional[Union[List[Union['QuantitativeValue', str]], 'QuantitativeValue', str]] = Field( default=None, description="The typical delay the order has been sent for delivery and the goods reach the final customer." diff --git a/pydantic_schemaorg/ShippingRateSettings.py b/pydantic_schemaorg/ShippingRateSettings.py index 5969f062..8f4eb724 100644 --- a/pydantic_schemaorg/ShippingRateSettings.py +++ b/pydantic_schemaorg/ShippingRateSettings.py @@ -18,7 +18,7 @@ class ShippingRateSettings(StructuredValue): See: https://schema.org/ShippingRateSettings Model depth: 4 """ - type_: str = Field(default="ShippingRateSettings", alias='@type', constant=True) + type_: str = Field(default="ShippingRateSettings", alias='@type', const=True) shippingLabel: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within" diff --git a/pydantic_schemaorg/ShoeStore.py b/pydantic_schemaorg/ShoeStore.py index a98798d4..8c35c9e0 100644 --- a/pydantic_schemaorg/ShoeStore.py +++ b/pydantic_schemaorg/ShoeStore.py @@ -11,5 +11,5 @@ class ShoeStore(Store): See: https://schema.org/ShoeStore Model depth: 5 """ - type_: str = Field(default="ShoeStore", alias='@type', constant=True) + type_: str = Field(default="ShoeStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/ShoppingCenter.py b/pydantic_schemaorg/ShoppingCenter.py index 4326e1f6..5703f78e 100644 --- a/pydantic_schemaorg/ShoppingCenter.py +++ b/pydantic_schemaorg/ShoppingCenter.py @@ -11,5 +11,5 @@ class ShoppingCenter(LocalBusiness): See: https://schema.org/ShoppingCenter Model depth: 4 """ - type_: str = Field(default="ShoppingCenter", alias='@type', constant=True) + type_: str = Field(default="ShoppingCenter", alias='@type', const=True) diff --git a/pydantic_schemaorg/ShortStory.py b/pydantic_schemaorg/ShortStory.py index 76cc95c3..07e721a3 100644 --- a/pydantic_schemaorg/ShortStory.py +++ b/pydantic_schemaorg/ShortStory.py @@ -11,5 +11,5 @@ class ShortStory(CreativeWork): See: https://schema.org/ShortStory Model depth: 3 """ - type_: str = Field(default="ShortStory", alias='@type', constant=True) + type_: str = Field(default="ShortStory", alias='@type', const=True) diff --git a/pydantic_schemaorg/SideEffectsHealthAspect.py b/pydantic_schemaorg/SideEffectsHealthAspect.py index a41effd1..fa8b4052 100644 --- a/pydantic_schemaorg/SideEffectsHealthAspect.py +++ b/pydantic_schemaorg/SideEffectsHealthAspect.py @@ -11,5 +11,5 @@ class SideEffectsHealthAspect(HealthAspectEnumeration): See: https://schema.org/SideEffectsHealthAspect Model depth: 5 """ - type_: str = Field(default="SideEffectsHealthAspect", alias='@type', constant=True) + type_: str = Field(default="SideEffectsHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/SingleBlindedTrial.py b/pydantic_schemaorg/SingleBlindedTrial.py index 9deb65dd..85a0e3e3 100644 --- a/pydantic_schemaorg/SingleBlindedTrial.py +++ b/pydantic_schemaorg/SingleBlindedTrial.py @@ -12,5 +12,5 @@ class SingleBlindedTrial(MedicalTrialDesign): See: https://schema.org/SingleBlindedTrial Model depth: 6 """ - type_: str = Field(default="SingleBlindedTrial", alias='@type', constant=True) + type_: str = Field(default="SingleBlindedTrial", alias='@type', const=True) diff --git a/pydantic_schemaorg/SingleCenterTrial.py b/pydantic_schemaorg/SingleCenterTrial.py index c16a3b49..601b4f02 100644 --- a/pydantic_schemaorg/SingleCenterTrial.py +++ b/pydantic_schemaorg/SingleCenterTrial.py @@ -11,5 +11,5 @@ class SingleCenterTrial(MedicalTrialDesign): See: https://schema.org/SingleCenterTrial Model depth: 6 """ - type_: str = Field(default="SingleCenterTrial", alias='@type', constant=True) + type_: str = Field(default="SingleCenterTrial", alias='@type', const=True) diff --git a/pydantic_schemaorg/SingleFamilyResidence.py b/pydantic_schemaorg/SingleFamilyResidence.py index 15f18f1a..23adddc1 100644 --- a/pydantic_schemaorg/SingleFamilyResidence.py +++ b/pydantic_schemaorg/SingleFamilyResidence.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -15,8 +15,8 @@ class SingleFamilyResidence(House): See: https://schema.org/SingleFamilyResidence Model depth: 5 """ - type_: str = Field(default="SingleFamilyResidence", alias='@type', constant=True) - numberOfRooms: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + type_: str = Field(default="SingleFamilyResidence", alias='@type', const=True) + numberOfRooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The number of rooms (excluding bathrooms and closets) of the accommodation or lodging" "business. Typical unit code(s): ROM for room or C62 for no unit. The type of room can be" diff --git a/pydantic_schemaorg/SinglePlayer.py b/pydantic_schemaorg/SinglePlayer.py index 86139000..b994a8f8 100644 --- a/pydantic_schemaorg/SinglePlayer.py +++ b/pydantic_schemaorg/SinglePlayer.py @@ -11,5 +11,5 @@ class SinglePlayer(GamePlayMode): See: https://schema.org/SinglePlayer Model depth: 5 """ - type_: str = Field(default="SinglePlayer", alias='@type', constant=True) + type_: str = Field(default="SinglePlayer", alias='@type', const=True) diff --git a/pydantic_schemaorg/SingleRelease.py b/pydantic_schemaorg/SingleRelease.py index b6ee8dcd..abf3dc1c 100644 --- a/pydantic_schemaorg/SingleRelease.py +++ b/pydantic_schemaorg/SingleRelease.py @@ -11,5 +11,5 @@ class SingleRelease(MusicAlbumReleaseType): See: https://schema.org/SingleRelease Model depth: 5 """ - type_: str = Field(default="SingleRelease", alias='@type', constant=True) + type_: str = Field(default="SingleRelease", alias='@type', const=True) diff --git a/pydantic_schemaorg/SiteNavigationElement.py b/pydantic_schemaorg/SiteNavigationElement.py index de885b97..0a127cf7 100644 --- a/pydantic_schemaorg/SiteNavigationElement.py +++ b/pydantic_schemaorg/SiteNavigationElement.py @@ -11,5 +11,5 @@ class SiteNavigationElement(WebPageElement): See: https://schema.org/SiteNavigationElement Model depth: 4 """ - type_: str = Field(default="SiteNavigationElement", alias='@type', constant=True) + type_: str = Field(default="SiteNavigationElement", alias='@type', const=True) diff --git a/pydantic_schemaorg/SizeGroupEnumeration.py b/pydantic_schemaorg/SizeGroupEnumeration.py index b361ef0e..95c36e68 100644 --- a/pydantic_schemaorg/SizeGroupEnumeration.py +++ b/pydantic_schemaorg/SizeGroupEnumeration.py @@ -11,5 +11,5 @@ class SizeGroupEnumeration(Enumeration): See: https://schema.org/SizeGroupEnumeration Model depth: 4 """ - type_: str = Field(default="SizeGroupEnumeration", alias='@type', constant=True) + type_: str = Field(default="SizeGroupEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/SizeSpecification.py b/pydantic_schemaorg/SizeSpecification.py index f6220bf7..832e9d80 100644 --- a/pydantic_schemaorg/SizeSpecification.py +++ b/pydantic_schemaorg/SizeSpecification.py @@ -17,7 +17,7 @@ class SizeSpecification(QualitativeValue): See: https://schema.org/SizeSpecification Model depth: 5 """ - type_: str = Field(default="SizeSpecification", alias='@type', constant=True) + type_: str = Field(default="SizeSpecification", alias='@type', const=True) sizeSystem: Optional[Union[List[Union[str, 'Text', 'SizeSystemEnumeration']], str, 'Text', 'SizeSystemEnumeration']] = Field( default=None, description="The size system used to identify a product's size. Typically either a standard (for example," diff --git a/pydantic_schemaorg/SizeSystemEnumeration.py b/pydantic_schemaorg/SizeSystemEnumeration.py index 0a40fb9b..ed2445d8 100644 --- a/pydantic_schemaorg/SizeSystemEnumeration.py +++ b/pydantic_schemaorg/SizeSystemEnumeration.py @@ -12,5 +12,5 @@ class SizeSystemEnumeration(Enumeration): See: https://schema.org/SizeSystemEnumeration Model depth: 4 """ - type_: str = Field(default="SizeSystemEnumeration", alias='@type', constant=True) + type_: str = Field(default="SizeSystemEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/SizeSystemImperial.py b/pydantic_schemaorg/SizeSystemImperial.py index e95e002f..4b5c94a9 100644 --- a/pydantic_schemaorg/SizeSystemImperial.py +++ b/pydantic_schemaorg/SizeSystemImperial.py @@ -11,5 +11,5 @@ class SizeSystemImperial(SizeSystemEnumeration): See: https://schema.org/SizeSystemImperial Model depth: 5 """ - type_: str = Field(default="SizeSystemImperial", alias='@type', constant=True) + type_: str = Field(default="SizeSystemImperial", alias='@type', const=True) diff --git a/pydantic_schemaorg/SizeSystemMetric.py b/pydantic_schemaorg/SizeSystemMetric.py index 07760716..8b6185ec 100644 --- a/pydantic_schemaorg/SizeSystemMetric.py +++ b/pydantic_schemaorg/SizeSystemMetric.py @@ -11,5 +11,5 @@ class SizeSystemMetric(SizeSystemEnumeration): See: https://schema.org/SizeSystemMetric Model depth: 5 """ - type_: str = Field(default="SizeSystemMetric", alias='@type', constant=True) + type_: str = Field(default="SizeSystemMetric", alias='@type', const=True) diff --git a/pydantic_schemaorg/SkiResort.py b/pydantic_schemaorg/SkiResort.py index e7f06ba8..f637a677 100644 --- a/pydantic_schemaorg/SkiResort.py +++ b/pydantic_schemaorg/SkiResort.py @@ -12,5 +12,5 @@ class SkiResort(Resort, SportsActivityLocation): See: https://schema.org/SkiResort Model depth: 5 """ - type_: str = Field(default="SkiResort", alias='@type', constant=True) + type_: str = Field(default="SkiResort", alias='@type', const=True) diff --git a/pydantic_schemaorg/Skin.py b/pydantic_schemaorg/Skin.py index 0b4e8c21..2b87d347 100644 --- a/pydantic_schemaorg/Skin.py +++ b/pydantic_schemaorg/Skin.py @@ -11,5 +11,5 @@ class Skin(PhysicalExam): See: https://schema.org/Skin Model depth: 5 """ - type_: str = Field(default="Skin", alias='@type', constant=True) + type_: str = Field(default="Skin", alias='@type', const=True) diff --git a/pydantic_schemaorg/SocialEvent.py b/pydantic_schemaorg/SocialEvent.py index 80f3139f..e00d4153 100644 --- a/pydantic_schemaorg/SocialEvent.py +++ b/pydantic_schemaorg/SocialEvent.py @@ -11,5 +11,5 @@ class SocialEvent(Event): See: https://schema.org/SocialEvent Model depth: 3 """ - type_: str = Field(default="SocialEvent", alias='@type', constant=True) + type_: str = Field(default="SocialEvent", alias='@type', const=True) diff --git a/pydantic_schemaorg/SocialMediaPosting.py b/pydantic_schemaorg/SocialMediaPosting.py index 65f0680b..25aedb5c 100644 --- a/pydantic_schemaorg/SocialMediaPosting.py +++ b/pydantic_schemaorg/SocialMediaPosting.py @@ -14,7 +14,7 @@ class SocialMediaPosting(Article): See: https://schema.org/SocialMediaPosting Model depth: 4 """ - type_: str = Field(default="SocialMediaPosting", alias='@type', constant=True) + type_: str = Field(default="SocialMediaPosting", alias='@type', const=True) sharedContent: Optional[Union[List[Union['CreativeWork', str]], 'CreativeWork', str]] = Field( default=None, description="A CreativeWork such as an image, video, or audio clip shared as part of this posting.", diff --git a/pydantic_schemaorg/SoftwareApplication.py b/pydantic_schemaorg/SoftwareApplication.py index abce4421..f8a7786b 100644 --- a/pydantic_schemaorg/SoftwareApplication.py +++ b/pydantic_schemaorg/SoftwareApplication.py @@ -15,7 +15,7 @@ class SoftwareApplication(CreativeWork): See: https://schema.org/SoftwareApplication Model depth: 3 """ - type_: str = Field(default="SoftwareApplication", alias='@type', constant=True) + type_: str = Field(default="SoftwareApplication", alias='@type', const=True) applicationSubCategory: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text']], AnyUrl, 'URL', str, 'Text']] = Field( default=None, description="Subcategory of the application, e.g. 'Arcade Game'.", diff --git a/pydantic_schemaorg/SoftwareSourceCode.py b/pydantic_schemaorg/SoftwareSourceCode.py index 2e7849d6..723168df 100644 --- a/pydantic_schemaorg/SoftwareSourceCode.py +++ b/pydantic_schemaorg/SoftwareSourceCode.py @@ -16,7 +16,7 @@ class SoftwareSourceCode(CreativeWork): See: https://schema.org/SoftwareSourceCode Model depth: 3 """ - type_: str = Field(default="SoftwareSourceCode", alias='@type', constant=True) + type_: str = Field(default="SoftwareSourceCode", alias='@type', const=True) codeRepository: Optional[Union[List[Union[AnyUrl, 'URL', str]], AnyUrl, 'URL', str]] = Field( default=None, description="Link to the repository where the un-compiled, human readable code and related code is" diff --git a/pydantic_schemaorg/SoldOut.py b/pydantic_schemaorg/SoldOut.py index 137ebf6b..42a6ecfb 100644 --- a/pydantic_schemaorg/SoldOut.py +++ b/pydantic_schemaorg/SoldOut.py @@ -11,5 +11,5 @@ class SoldOut(ItemAvailability): See: https://schema.org/SoldOut Model depth: 5 """ - type_: str = Field(default="SoldOut", alias='@type', constant=True) + type_: str = Field(default="SoldOut", alias='@type', const=True) diff --git a/pydantic_schemaorg/SolveMathAction.py b/pydantic_schemaorg/SolveMathAction.py index 12595053..a0704ca0 100644 --- a/pydantic_schemaorg/SolveMathAction.py +++ b/pydantic_schemaorg/SolveMathAction.py @@ -15,7 +15,7 @@ class SolveMathAction(Action): See: https://schema.org/SolveMathAction Model depth: 3 """ - type_: str = Field(default="SolveMathAction", alias='@type', constant=True) + type_: str = Field(default="SolveMathAction", alias='@type', const=True) eduQuestionType: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="For questions that are part of learning resources (e.g. Quiz), eduQuestionType indicates" diff --git a/pydantic_schemaorg/SomeProducts.py b/pydantic_schemaorg/SomeProducts.py index b2e52dbd..bf05e350 100644 --- a/pydantic_schemaorg/SomeProducts.py +++ b/pydantic_schemaorg/SomeProducts.py @@ -14,7 +14,7 @@ class SomeProducts(Product): See: https://schema.org/SomeProducts Model depth: 3 """ - type_: str = Field(default="SomeProducts", alias='@type', constant=True) + type_: str = Field(default="SomeProducts", alias='@type', const=True) inventoryLevel: Optional[Union[List[Union['QuantitativeValue', str]], 'QuantitativeValue', str]] = Field( default=None, description="The current approximate inventory level for the item or items.", diff --git a/pydantic_schemaorg/SoundtrackAlbum.py b/pydantic_schemaorg/SoundtrackAlbum.py index 9f6a1079..9543fb43 100644 --- a/pydantic_schemaorg/SoundtrackAlbum.py +++ b/pydantic_schemaorg/SoundtrackAlbum.py @@ -11,5 +11,5 @@ class SoundtrackAlbum(MusicAlbumProductionType): See: https://schema.org/SoundtrackAlbum Model depth: 5 """ - type_: str = Field(default="SoundtrackAlbum", alias='@type', constant=True) + type_: str = Field(default="SoundtrackAlbum", alias='@type', const=True) diff --git a/pydantic_schemaorg/SpeakableSpecification.py b/pydantic_schemaorg/SpeakableSpecification.py index c27e62c5..6ac68c5f 100644 --- a/pydantic_schemaorg/SpeakableSpecification.py +++ b/pydantic_schemaorg/SpeakableSpecification.py @@ -16,7 +16,7 @@ class SpeakableSpecification(Intangible): See: https://schema.org/SpeakableSpecification Model depth: 3 """ - type_: str = Field(default="SpeakableSpecification", alias='@type', constant=True) + type_: str = Field(default="SpeakableSpecification", alias='@type', const=True) xpath: Optional[Union[List[Union[str, 'XPathType']], str, 'XPathType']] = Field( default=None, description="An XPath, e.g. of a [[SpeakableSpecification]] or [[WebPageElement]]. In the latter" diff --git a/pydantic_schemaorg/SpecialAnnouncement.py b/pydantic_schemaorg/SpecialAnnouncement.py index a6e93461..38b12f41 100644 --- a/pydantic_schemaorg/SpecialAnnouncement.py +++ b/pydantic_schemaorg/SpecialAnnouncement.py @@ -61,7 +61,7 @@ class SpecialAnnouncement(CreativeWork): See: https://schema.org/SpecialAnnouncement Model depth: 3 """ - type_: str = Field(default="SpecialAnnouncement", alias='@type', constant=True) + type_: str = Field(default="SpecialAnnouncement", alias='@type', const=True) announcementLocation: Optional[Union[List[Union['LocalBusiness', 'CivicStructure', str]], 'LocalBusiness', 'CivicStructure', str]] = Field( default=None, description="Indicates a specific [[CivicStructure]] or [[LocalBusiness]] associated with the" @@ -78,7 +78,7 @@ class SpecialAnnouncement(CreativeWork): description="governmentBenefitsInfo provides information about government benefits associated" "with a SpecialAnnouncement.", ) - diseaseSpreadStatistics: Optional[Union[List[Union[AnyUrl, 'URL', 'WebContent', 'Dataset', 'Observation', str]], AnyUrl, 'URL', 'WebContent', 'Dataset', 'Observation', str]] = Field( + diseaseSpreadStatistics: Optional[Union[List[Union[AnyUrl, 'URL', 'Observation', 'WebContent', 'Dataset', str]], AnyUrl, 'URL', 'Observation', 'WebContent', 'Dataset', str]] = Field( default=None, description="Statistical information about the spread of a disease, either as [[WebContent]], or" "described directly as a [[Dataset]], or the specific [[Observation]]s in the dataset." @@ -89,7 +89,7 @@ class SpecialAnnouncement(CreativeWork): default=None, description="Information about travel bans, e.g. in the context of a pandemic.", ) - category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']], AnyUrl, 'URL', str, 'Text', 'Thing', 'PhysicalActivityCategory']] = Field( + category: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']], AnyUrl, 'URL', str, 'Text', 'PhysicalActivityCategory', 'Thing']] = Field( default=None, description="A category for the item. Greater signs or slashes can be used to informally indicate a" "category hierarchy.", @@ -133,11 +133,11 @@ class SpecialAnnouncement(CreativeWork): from pydantic_schemaorg.URL import URL from pydantic_schemaorg.WebContent import WebContent from pydantic_schemaorg.GovernmentService import GovernmentService - from pydantic_schemaorg.Dataset import Dataset from pydantic_schemaorg.Observation import Observation + from pydantic_schemaorg.Dataset import Dataset from pydantic_schemaorg.Text import Text - from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.PhysicalActivityCategory import PhysicalActivityCategory + from pydantic_schemaorg.Thing import Thing from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Date import Date from pydantic_schemaorg.DataFeed import DataFeed diff --git a/pydantic_schemaorg/Specialty.py b/pydantic_schemaorg/Specialty.py index cff6b245..37073f09 100644 --- a/pydantic_schemaorg/Specialty.py +++ b/pydantic_schemaorg/Specialty.py @@ -12,5 +12,5 @@ class Specialty(Enumeration): See: https://schema.org/Specialty Model depth: 4 """ - type_: str = Field(default="Specialty", alias='@type', constant=True) + type_: str = Field(default="Specialty", alias='@type', const=True) diff --git a/pydantic_schemaorg/SpeechPathology.py b/pydantic_schemaorg/SpeechPathology.py index 2e9414e5..14d42f94 100644 --- a/pydantic_schemaorg/SpeechPathology.py +++ b/pydantic_schemaorg/SpeechPathology.py @@ -13,5 +13,5 @@ class SpeechPathology(MedicalSpecialty): See: https://schema.org/SpeechPathology Model depth: 6 """ - type_: str = Field(default="SpeechPathology", alias='@type', constant=True) + type_: str = Field(default="SpeechPathology", alias='@type', const=True) diff --git a/pydantic_schemaorg/SpokenWordAlbum.py b/pydantic_schemaorg/SpokenWordAlbum.py index 62494ecf..e768c0fa 100644 --- a/pydantic_schemaorg/SpokenWordAlbum.py +++ b/pydantic_schemaorg/SpokenWordAlbum.py @@ -11,5 +11,5 @@ class SpokenWordAlbum(MusicAlbumProductionType): See: https://schema.org/SpokenWordAlbum Model depth: 5 """ - type_: str = Field(default="SpokenWordAlbum", alias='@type', constant=True) + type_: str = Field(default="SpokenWordAlbum", alias='@type', const=True) diff --git a/pydantic_schemaorg/SportingGoodsStore.py b/pydantic_schemaorg/SportingGoodsStore.py index 5d5cfa40..613836c9 100644 --- a/pydantic_schemaorg/SportingGoodsStore.py +++ b/pydantic_schemaorg/SportingGoodsStore.py @@ -11,5 +11,5 @@ class SportingGoodsStore(Store): See: https://schema.org/SportingGoodsStore Model depth: 5 """ - type_: str = Field(default="SportingGoodsStore", alias='@type', constant=True) + type_: str = Field(default="SportingGoodsStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/SportsActivityLocation.py b/pydantic_schemaorg/SportsActivityLocation.py index 7023a543..cf021f11 100644 --- a/pydantic_schemaorg/SportsActivityLocation.py +++ b/pydantic_schemaorg/SportsActivityLocation.py @@ -11,5 +11,5 @@ class SportsActivityLocation(LocalBusiness): See: https://schema.org/SportsActivityLocation Model depth: 4 """ - type_: str = Field(default="SportsActivityLocation", alias='@type', constant=True) + type_: str = Field(default="SportsActivityLocation", alias='@type', const=True) diff --git a/pydantic_schemaorg/SportsClub.py b/pydantic_schemaorg/SportsClub.py index 932e46e6..6f2b54e0 100644 --- a/pydantic_schemaorg/SportsClub.py +++ b/pydantic_schemaorg/SportsClub.py @@ -11,5 +11,5 @@ class SportsClub(SportsActivityLocation): See: https://schema.org/SportsClub Model depth: 5 """ - type_: str = Field(default="SportsClub", alias='@type', constant=True) + type_: str = Field(default="SportsClub", alias='@type', const=True) diff --git a/pydantic_schemaorg/SportsEvent.py b/pydantic_schemaorg/SportsEvent.py index 853d9d60..7a39e2bc 100644 --- a/pydantic_schemaorg/SportsEvent.py +++ b/pydantic_schemaorg/SportsEvent.py @@ -15,7 +15,7 @@ class SportsEvent(Event): See: https://schema.org/SportsEvent Model depth: 3 """ - type_: str = Field(default="SportsEvent", alias='@type', constant=True) + type_: str = Field(default="SportsEvent", alias='@type', const=True) sport: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text']], AnyUrl, 'URL', str, 'Text']] = Field( default=None, description="A type of sport (e.g. Baseball).", diff --git a/pydantic_schemaorg/SportsOrganization.py b/pydantic_schemaorg/SportsOrganization.py index 8456bc91..a6e0e9c8 100644 --- a/pydantic_schemaorg/SportsOrganization.py +++ b/pydantic_schemaorg/SportsOrganization.py @@ -16,7 +16,7 @@ class SportsOrganization(Organization): See: https://schema.org/SportsOrganization Model depth: 3 """ - type_: str = Field(default="SportsOrganization", alias='@type', constant=True) + type_: str = Field(default="SportsOrganization", alias='@type', const=True) sport: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text']], AnyUrl, 'URL', str, 'Text']] = Field( default=None, description="A type of sport (e.g. Baseball).", diff --git a/pydantic_schemaorg/SportsTeam.py b/pydantic_schemaorg/SportsTeam.py index 5190d45a..ea267cd0 100644 --- a/pydantic_schemaorg/SportsTeam.py +++ b/pydantic_schemaorg/SportsTeam.py @@ -14,7 +14,7 @@ class SportsTeam(SportsOrganization): See: https://schema.org/SportsTeam Model depth: 4 """ - type_: str = Field(default="SportsTeam", alias='@type', constant=True) + type_: str = Field(default="SportsTeam", alias='@type', const=True) gender: Optional[Union[List[Union[str, 'Text', 'GenderType']], str, 'Text', 'GenderType']] = Field( default=None, description="Gender of something, typically a [[Person]], but possibly also fictional characters," diff --git a/pydantic_schemaorg/SpreadsheetDigitalDocument.py b/pydantic_schemaorg/SpreadsheetDigitalDocument.py index 2cbe866b..b53faa5f 100644 --- a/pydantic_schemaorg/SpreadsheetDigitalDocument.py +++ b/pydantic_schemaorg/SpreadsheetDigitalDocument.py @@ -11,5 +11,5 @@ class SpreadsheetDigitalDocument(DigitalDocument): See: https://schema.org/SpreadsheetDigitalDocument Model depth: 4 """ - type_: str = Field(default="SpreadsheetDigitalDocument", alias='@type', constant=True) + type_: str = Field(default="SpreadsheetDigitalDocument", alias='@type', const=True) diff --git a/pydantic_schemaorg/StadiumOrArena.py b/pydantic_schemaorg/StadiumOrArena.py index 1b7f28c9..50c40f3a 100644 --- a/pydantic_schemaorg/StadiumOrArena.py +++ b/pydantic_schemaorg/StadiumOrArena.py @@ -12,5 +12,5 @@ class StadiumOrArena(SportsActivityLocation, CivicStructure): See: https://schema.org/StadiumOrArena Model depth: 4 """ - type_: str = Field(default="StadiumOrArena", alias='@type', constant=True) + type_: str = Field(default="StadiumOrArena", alias='@type', const=True) diff --git a/pydantic_schemaorg/StagedContent.py b/pydantic_schemaorg/StagedContent.py index f60b3cba..f78ea0e2 100644 --- a/pydantic_schemaorg/StagedContent.py +++ b/pydantic_schemaorg/StagedContent.py @@ -18,5 +18,5 @@ class StagedContent(MediaManipulationRatingEnumeration): See: https://schema.org/StagedContent Model depth: 5 """ - type_: str = Field(default="StagedContent", alias='@type', constant=True) + type_: str = Field(default="StagedContent", alias='@type', const=True) diff --git a/pydantic_schemaorg/StagesHealthAspect.py b/pydantic_schemaorg/StagesHealthAspect.py index 102329b3..32fd6731 100644 --- a/pydantic_schemaorg/StagesHealthAspect.py +++ b/pydantic_schemaorg/StagesHealthAspect.py @@ -11,5 +11,5 @@ class StagesHealthAspect(HealthAspectEnumeration): See: https://schema.org/StagesHealthAspect Model depth: 5 """ - type_: str = Field(default="StagesHealthAspect", alias='@type', constant=True) + type_: str = Field(default="StagesHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/State.py b/pydantic_schemaorg/State.py index d13c2e2e..19aa04e4 100644 --- a/pydantic_schemaorg/State.py +++ b/pydantic_schemaorg/State.py @@ -11,5 +11,5 @@ class State(AdministrativeArea): See: https://schema.org/State Model depth: 4 """ - type_: str = Field(default="State", alias='@type', constant=True) + type_: str = Field(default="State", alias='@type', const=True) diff --git a/pydantic_schemaorg/Statement.py b/pydantic_schemaorg/Statement.py index 2d6e69ca..5a9b4819 100644 --- a/pydantic_schemaorg/Statement.py +++ b/pydantic_schemaorg/Statement.py @@ -14,5 +14,5 @@ class Statement(CreativeWork): See: https://schema.org/Statement Model depth: 3 """ - type_: str = Field(default="Statement", alias='@type', constant=True) + type_: str = Field(default="Statement", alias='@type', const=True) diff --git a/pydantic_schemaorg/StatisticalPopulation.py b/pydantic_schemaorg/StatisticalPopulation.py index bbe6b35f..d33dd08a 100644 --- a/pydantic_schemaorg/StatisticalPopulation.py +++ b/pydantic_schemaorg/StatisticalPopulation.py @@ -25,7 +25,7 @@ class StatisticalPopulation(Intangible): See: https://schema.org/StatisticalPopulation Model depth: 3 """ - type_: str = Field(default="StatisticalPopulation", alias='@type', constant=True) + type_: str = Field(default="StatisticalPopulation", alias='@type', const=True) numConstraints: Optional[Union[List[Union[int, 'Integer', str]], int, 'Integer', str]] = Field( default=None, description="Indicates the number of constraints (not counting [[populationType]]) defined for" diff --git a/pydantic_schemaorg/StatusEnumeration.py b/pydantic_schemaorg/StatusEnumeration.py index 97dd3953..be8c4865 100644 --- a/pydantic_schemaorg/StatusEnumeration.py +++ b/pydantic_schemaorg/StatusEnumeration.py @@ -11,5 +11,5 @@ class StatusEnumeration(Enumeration): See: https://schema.org/StatusEnumeration Model depth: 4 """ - type_: str = Field(default="StatusEnumeration", alias='@type', constant=True) + type_: str = Field(default="StatusEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/SteeringPositionValue.py b/pydantic_schemaorg/SteeringPositionValue.py index 5edcc210..10c8fd60 100644 --- a/pydantic_schemaorg/SteeringPositionValue.py +++ b/pydantic_schemaorg/SteeringPositionValue.py @@ -11,5 +11,5 @@ class SteeringPositionValue(QualitativeValue): See: https://schema.org/SteeringPositionValue Model depth: 5 """ - type_: str = Field(default="SteeringPositionValue", alias='@type', constant=True) + type_: str = Field(default="SteeringPositionValue", alias='@type', const=True) diff --git a/pydantic_schemaorg/Store.py b/pydantic_schemaorg/Store.py index 08f36c22..fb8377a3 100644 --- a/pydantic_schemaorg/Store.py +++ b/pydantic_schemaorg/Store.py @@ -11,5 +11,5 @@ class Store(LocalBusiness): See: https://schema.org/Store Model depth: 4 """ - type_: str = Field(default="Store", alias='@type', constant=True) + type_: str = Field(default="Store", alias='@type', const=True) diff --git a/pydantic_schemaorg/StoreCreditRefund.py b/pydantic_schemaorg/StoreCreditRefund.py index 8c769077..208db7e7 100644 --- a/pydantic_schemaorg/StoreCreditRefund.py +++ b/pydantic_schemaorg/StoreCreditRefund.py @@ -11,5 +11,5 @@ class StoreCreditRefund(RefundTypeEnumeration): See: https://schema.org/StoreCreditRefund Model depth: 5 """ - type_: str = Field(default="StoreCreditRefund", alias='@type', constant=True) + type_: str = Field(default="StoreCreditRefund", alias='@type', const=True) diff --git a/pydantic_schemaorg/StrengthTraining.py b/pydantic_schemaorg/StrengthTraining.py index 5af8ec00..0d6f2979 100644 --- a/pydantic_schemaorg/StrengthTraining.py +++ b/pydantic_schemaorg/StrengthTraining.py @@ -12,5 +12,5 @@ class StrengthTraining(PhysicalActivityCategory): See: https://schema.org/StrengthTraining Model depth: 5 """ - type_: str = Field(default="StrengthTraining", alias='@type', constant=True) + type_: str = Field(default="StrengthTraining", alias='@type', const=True) diff --git a/pydantic_schemaorg/StructuredValue.py b/pydantic_schemaorg/StructuredValue.py index e07029d7..323de9a4 100644 --- a/pydantic_schemaorg/StructuredValue.py +++ b/pydantic_schemaorg/StructuredValue.py @@ -12,5 +12,5 @@ class StructuredValue(Intangible): See: https://schema.org/StructuredValue Model depth: 3 """ - type_: str = Field(default="StructuredValue", alias='@type', constant=True) + type_: str = Field(default="StructuredValue", alias='@type', const=True) diff --git a/pydantic_schemaorg/StudioAlbum.py b/pydantic_schemaorg/StudioAlbum.py index 9b823192..af077fc3 100644 --- a/pydantic_schemaorg/StudioAlbum.py +++ b/pydantic_schemaorg/StudioAlbum.py @@ -11,5 +11,5 @@ class StudioAlbum(MusicAlbumProductionType): See: https://schema.org/StudioAlbum Model depth: 5 """ - type_: str = Field(default="StudioAlbum", alias='@type', constant=True) + type_: str = Field(default="StudioAlbum", alias='@type', const=True) diff --git a/pydantic_schemaorg/SubscribeAction.py b/pydantic_schemaorg/SubscribeAction.py index 45f7381e..712116cd 100644 --- a/pydantic_schemaorg/SubscribeAction.py +++ b/pydantic_schemaorg/SubscribeAction.py @@ -17,5 +17,5 @@ class SubscribeAction(InteractAction): See: https://schema.org/SubscribeAction Model depth: 4 """ - type_: str = Field(default="SubscribeAction", alias='@type', constant=True) + type_: str = Field(default="SubscribeAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Subscription.py b/pydantic_schemaorg/Subscription.py index a69d9fec..9a816b18 100644 --- a/pydantic_schemaorg/Subscription.py +++ b/pydantic_schemaorg/Subscription.py @@ -11,5 +11,5 @@ class Subscription(PriceComponentTypeEnumeration): See: https://schema.org/Subscription Model depth: 5 """ - type_: str = Field(default="Subscription", alias='@type', constant=True) + type_: str = Field(default="Subscription", alias='@type', const=True) diff --git a/pydantic_schemaorg/Substance.py b/pydantic_schemaorg/Substance.py index de620635..2352a1cd 100644 --- a/pydantic_schemaorg/Substance.py +++ b/pydantic_schemaorg/Substance.py @@ -15,7 +15,7 @@ class Substance(MedicalEntity): See: https://schema.org/Substance Model depth: 3 """ - type_: str = Field(default="Substance", alias='@type', constant=True) + type_: str = Field(default="Substance", alias='@type', const=True) activeIngredient: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="An active ingredient, typically chemical compounds and/or biologic substances.", diff --git a/pydantic_schemaorg/SubwayStation.py b/pydantic_schemaorg/SubwayStation.py index 4c253b3b..15a77589 100644 --- a/pydantic_schemaorg/SubwayStation.py +++ b/pydantic_schemaorg/SubwayStation.py @@ -11,5 +11,5 @@ class SubwayStation(CivicStructure): See: https://schema.org/SubwayStation Model depth: 4 """ - type_: str = Field(default="SubwayStation", alias='@type', constant=True) + type_: str = Field(default="SubwayStation", alias='@type', const=True) diff --git a/pydantic_schemaorg/Suite.py b/pydantic_schemaorg/Suite.py index 6712077c..cdd0556e 100644 --- a/pydantic_schemaorg/Suite.py +++ b/pydantic_schemaorg/Suite.py @@ -1,7 +1,7 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from typing import List, Optional, Union @@ -19,8 +19,8 @@ class Suite(Accommodation): See: https://schema.org/Suite Model depth: 4 """ - type_: str = Field(default="Suite", alias='@type', constant=True) - numberOfRooms: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + type_: str = Field(default="Suite", alias='@type', const=True) + numberOfRooms: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The number of rooms (excluding bathrooms and closets) of the accommodation or lodging" "business. Typical unit code(s): ROM for room or C62 for no unit. The type of room can be" diff --git a/pydantic_schemaorg/Sunday.py b/pydantic_schemaorg/Sunday.py index 98e16711..3d90d075 100644 --- a/pydantic_schemaorg/Sunday.py +++ b/pydantic_schemaorg/Sunday.py @@ -11,5 +11,5 @@ class Sunday(DayOfWeek): See: https://schema.org/Sunday Model depth: 5 """ - type_: str = Field(default="Sunday", alias='@type', constant=True) + type_: str = Field(default="Sunday", alias='@type', const=True) diff --git a/pydantic_schemaorg/SuperficialAnatomy.py b/pydantic_schemaorg/SuperficialAnatomy.py index fe4f80a4..27bdebae 100644 --- a/pydantic_schemaorg/SuperficialAnatomy.py +++ b/pydantic_schemaorg/SuperficialAnatomy.py @@ -28,14 +28,14 @@ class SuperficialAnatomy(MedicalEntity): See: https://schema.org/SuperficialAnatomy Model depth: 3 """ - type_: str = Field(default="SuperficialAnatomy", alias='@type', constant=True) + type_: str = Field(default="SuperficialAnatomy", alias='@type', const=True) significance: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The significance associated with the superficial anatomy; as an example, how characteristics" "of the superficial anatomy can suggest underlying medical conditions or courses of" "treatment.", ) - relatedAnatomy: Optional[Union[List[Union['AnatomicalStructure', 'AnatomicalSystem', str]], 'AnatomicalStructure', 'AnatomicalSystem', str]] = Field( + relatedAnatomy: Optional[Union[List[Union['AnatomicalSystem', 'AnatomicalStructure', str]], 'AnatomicalSystem', 'AnatomicalStructure', str]] = Field( default=None, description="Anatomical systems or structures that relate to the superficial anatomy.", ) @@ -57,7 +57,7 @@ class SuperficialAnatomy(MedicalEntity): if TYPE_CHECKING: from pydantic_schemaorg.Text import Text - from pydantic_schemaorg.AnatomicalStructure import AnatomicalStructure from pydantic_schemaorg.AnatomicalSystem import AnatomicalSystem + from pydantic_schemaorg.AnatomicalStructure import AnatomicalStructure from pydantic_schemaorg.MedicalCondition import MedicalCondition from pydantic_schemaorg.MedicalTherapy import MedicalTherapy diff --git a/pydantic_schemaorg/Surgical.py b/pydantic_schemaorg/Surgical.py index 4da66b63..8d2147d4 100644 --- a/pydantic_schemaorg/Surgical.py +++ b/pydantic_schemaorg/Surgical.py @@ -12,5 +12,5 @@ class Surgical(MedicalSpecialty): See: https://schema.org/Surgical Model depth: 6 """ - type_: str = Field(default="Surgical", alias='@type', constant=True) + type_: str = Field(default="Surgical", alias='@type', const=True) diff --git a/pydantic_schemaorg/SurgicalProcedure.py b/pydantic_schemaorg/SurgicalProcedure.py index 1bd8b2d0..3d187f10 100644 --- a/pydantic_schemaorg/SurgicalProcedure.py +++ b/pydantic_schemaorg/SurgicalProcedure.py @@ -12,5 +12,5 @@ class SurgicalProcedure(MedicalProcedure): See: https://schema.org/SurgicalProcedure Model depth: 4 """ - type_: str = Field(default="SurgicalProcedure", alias='@type', constant=True) + type_: str = Field(default="SurgicalProcedure", alias='@type', const=True) diff --git a/pydantic_schemaorg/SuspendAction.py b/pydantic_schemaorg/SuspendAction.py index e6531739..24385a8e 100644 --- a/pydantic_schemaorg/SuspendAction.py +++ b/pydantic_schemaorg/SuspendAction.py @@ -12,5 +12,5 @@ class SuspendAction(ControlAction): See: https://schema.org/SuspendAction Model depth: 4 """ - type_: str = Field(default="SuspendAction", alias='@type', constant=True) + type_: str = Field(default="SuspendAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Suspended.py b/pydantic_schemaorg/Suspended.py index 75015fea..2553d7dd 100644 --- a/pydantic_schemaorg/Suspended.py +++ b/pydantic_schemaorg/Suspended.py @@ -11,5 +11,5 @@ class Suspended(MedicalStudyStatus): See: https://schema.org/Suspended Model depth: 6 """ - type_: str = Field(default="Suspended", alias='@type', constant=True) + type_: str = Field(default="Suspended", alias='@type', const=True) diff --git a/pydantic_schemaorg/SymptomsHealthAspect.py b/pydantic_schemaorg/SymptomsHealthAspect.py index c4f7af8b..caf32406 100644 --- a/pydantic_schemaorg/SymptomsHealthAspect.py +++ b/pydantic_schemaorg/SymptomsHealthAspect.py @@ -11,5 +11,5 @@ class SymptomsHealthAspect(HealthAspectEnumeration): See: https://schema.org/SymptomsHealthAspect Model depth: 5 """ - type_: str = Field(default="SymptomsHealthAspect", alias='@type', constant=True) + type_: str = Field(default="SymptomsHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/Synagogue.py b/pydantic_schemaorg/Synagogue.py index 416f4d5c..0262fb3c 100644 --- a/pydantic_schemaorg/Synagogue.py +++ b/pydantic_schemaorg/Synagogue.py @@ -11,5 +11,5 @@ class Synagogue(PlaceOfWorship): See: https://schema.org/Synagogue Model depth: 5 """ - type_: str = Field(default="Synagogue", alias='@type', constant=True) + type_: str = Field(default="Synagogue", alias='@type', const=True) diff --git a/pydantic_schemaorg/TVClip.py b/pydantic_schemaorg/TVClip.py index 9d511355..a26c0867 100644 --- a/pydantic_schemaorg/TVClip.py +++ b/pydantic_schemaorg/TVClip.py @@ -14,7 +14,7 @@ class TVClip(Clip): See: https://schema.org/TVClip Model depth: 4 """ - type_: str = Field(default="TVClip", alias='@type', constant=True) + type_: str = Field(default="TVClip", alias='@type', const=True) partOfTVSeries: Optional[Union[List[Union['TVSeries', str]], 'TVSeries', str]] = Field( default=None, description="The TV series to which this episode or season belongs.", diff --git a/pydantic_schemaorg/TVEpisode.py b/pydantic_schemaorg/TVEpisode.py index a94f8bf5..f1b0d349 100644 --- a/pydantic_schemaorg/TVEpisode.py +++ b/pydantic_schemaorg/TVEpisode.py @@ -15,7 +15,7 @@ class TVEpisode(Episode): See: https://schema.org/TVEpisode Model depth: 4 """ - type_: str = Field(default="TVEpisode", alias='@type', constant=True) + type_: str = Field(default="TVEpisode", alias='@type', const=True) subtitleLanguage: Optional[Union[List[Union[str, 'Text', 'Language']], str, 'Text', 'Language']] = Field( default=None, description="Languages in which subtitles/captions are available, in [IETF BCP 47 standard format](http://tools.ietf.org/html/bcp47).", diff --git a/pydantic_schemaorg/TVSeason.py b/pydantic_schemaorg/TVSeason.py index 8a5dcb80..1e9a9c51 100644 --- a/pydantic_schemaorg/TVSeason.py +++ b/pydantic_schemaorg/TVSeason.py @@ -15,7 +15,7 @@ class TVSeason(CreativeWorkSeason, CreativeWork): See: https://schema.org/TVSeason Model depth: 3 """ - type_: str = Field(default="TVSeason", alias='@type', constant=True) + type_: str = Field(default="TVSeason", alias='@type', const=True) countryOfOrigin: Optional[Union[List[Union['Country', str]], 'Country', str]] = Field( default=None, description="The country of origin of something, including products as well as creative works such" diff --git a/pydantic_schemaorg/TVSeries.py b/pydantic_schemaorg/TVSeries.py index 447b6e00..eaae5927 100644 --- a/pydantic_schemaorg/TVSeries.py +++ b/pydantic_schemaorg/TVSeries.py @@ -16,7 +16,7 @@ class TVSeries(CreativeWorkSeries, CreativeWork): See: https://schema.org/TVSeries Model depth: 3 """ - type_: str = Field(default="TVSeries", alias='@type', constant=True) + type_: str = Field(default="TVSeries", alias='@type', const=True) actors: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual" diff --git a/pydantic_schemaorg/Table.py b/pydantic_schemaorg/Table.py index 4a594546..f323ef22 100644 --- a/pydantic_schemaorg/Table.py +++ b/pydantic_schemaorg/Table.py @@ -11,5 +11,5 @@ class Table(WebPageElement): See: https://schema.org/Table Model depth: 4 """ - type_: str = Field(default="Table", alias='@type', constant=True) + type_: str = Field(default="Table", alias='@type', const=True) diff --git a/pydantic_schemaorg/TakeAction.py b/pydantic_schemaorg/TakeAction.py index 9105af0e..3764271a 100644 --- a/pydantic_schemaorg/TakeAction.py +++ b/pydantic_schemaorg/TakeAction.py @@ -13,5 +13,5 @@ class TakeAction(TransferAction): See: https://schema.org/TakeAction Model depth: 4 """ - type_: str = Field(default="TakeAction", alias='@type', constant=True) + type_: str = Field(default="TakeAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/TattooParlor.py b/pydantic_schemaorg/TattooParlor.py index 8a2e28a7..0d35faaa 100644 --- a/pydantic_schemaorg/TattooParlor.py +++ b/pydantic_schemaorg/TattooParlor.py @@ -11,5 +11,5 @@ class TattooParlor(HealthAndBeautyBusiness): See: https://schema.org/TattooParlor Model depth: 5 """ - type_: str = Field(default="TattooParlor", alias='@type', constant=True) + type_: str = Field(default="TattooParlor", alias='@type', const=True) diff --git a/pydantic_schemaorg/Taxi.py b/pydantic_schemaorg/Taxi.py index 8bf75e70..28a44386 100644 --- a/pydantic_schemaorg/Taxi.py +++ b/pydantic_schemaorg/Taxi.py @@ -11,5 +11,5 @@ class Taxi(Service): See: https://schema.org/Taxi Model depth: 4 """ - type_: str = Field(default="Taxi", alias='@type', constant=True) + type_: str = Field(default="Taxi", alias='@type', const=True) diff --git a/pydantic_schemaorg/TaxiReservation.py b/pydantic_schemaorg/TaxiReservation.py index 52363ac6..9d9c4142 100644 --- a/pydantic_schemaorg/TaxiReservation.py +++ b/pydantic_schemaorg/TaxiReservation.py @@ -17,7 +17,7 @@ class TaxiReservation(Reservation): See: https://schema.org/TaxiReservation Model depth: 4 """ - type_: str = Field(default="TaxiReservation", alias='@type', constant=True) + type_: str = Field(default="TaxiReservation", alias='@type', const=True) partySize: Optional[Union[List[Union[int, 'Integer', 'QuantitativeValue', str]], int, 'Integer', 'QuantitativeValue', str]] = Field( default=None, description="Number of people the reservation should accommodate.", diff --git a/pydantic_schemaorg/TaxiService.py b/pydantic_schemaorg/TaxiService.py index d2056a59..db0d8864 100644 --- a/pydantic_schemaorg/TaxiService.py +++ b/pydantic_schemaorg/TaxiService.py @@ -12,5 +12,5 @@ class TaxiService(Service): See: https://schema.org/TaxiService Model depth: 4 """ - type_: str = Field(default="TaxiService", alias='@type', constant=True) + type_: str = Field(default="TaxiService", alias='@type', const=True) diff --git a/pydantic_schemaorg/TaxiStand.py b/pydantic_schemaorg/TaxiStand.py index e0b43e96..c432eb42 100644 --- a/pydantic_schemaorg/TaxiStand.py +++ b/pydantic_schemaorg/TaxiStand.py @@ -11,5 +11,5 @@ class TaxiStand(CivicStructure): See: https://schema.org/TaxiStand Model depth: 4 """ - type_: str = Field(default="TaxiStand", alias='@type', constant=True) + type_: str = Field(default="TaxiStand", alias='@type', const=True) diff --git a/pydantic_schemaorg/TaxiVehicleUsage.py b/pydantic_schemaorg/TaxiVehicleUsage.py index d60b5bef..0141486e 100644 --- a/pydantic_schemaorg/TaxiVehicleUsage.py +++ b/pydantic_schemaorg/TaxiVehicleUsage.py @@ -11,5 +11,5 @@ class TaxiVehicleUsage(CarUsageType): See: https://schema.org/TaxiVehicleUsage Model depth: 5 """ - type_: str = Field(default="TaxiVehicleUsage", alias='@type', constant=True) + type_: str = Field(default="TaxiVehicleUsage", alias='@type', const=True) diff --git a/pydantic_schemaorg/Taxon.py b/pydantic_schemaorg/Taxon.py index b76b6abf..1b62b2d8 100644 --- a/pydantic_schemaorg/Taxon.py +++ b/pydantic_schemaorg/Taxon.py @@ -15,7 +15,7 @@ class Taxon(Thing): See: https://schema.org/Taxon Model depth: 2 """ - type_: str = Field(default="Taxon", alias='@type', constant=True) + type_: str = Field(default="Taxon", alias='@type', const=True) hasDefinedTerm: Optional[Union[List[Union['DefinedTerm', str]], 'DefinedTerm', str]] = Field( default=None, description="A Defined Term contained in this term set.", diff --git a/pydantic_schemaorg/TechArticle.py b/pydantic_schemaorg/TechArticle.py index 4e29c0ca..cea7bce8 100644 --- a/pydantic_schemaorg/TechArticle.py +++ b/pydantic_schemaorg/TechArticle.py @@ -15,7 +15,7 @@ class TechArticle(Article): See: https://schema.org/TechArticle Model depth: 4 """ - type_: str = Field(default="TechArticle", alias='@type', constant=True) + type_: str = Field(default="TechArticle", alias='@type', const=True) proficiencyLevel: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Proficiency needed for this content; expected values: 'Beginner', 'Expert'.", diff --git a/pydantic_schemaorg/TelevisionChannel.py b/pydantic_schemaorg/TelevisionChannel.py index 605eee17..96bf1f19 100644 --- a/pydantic_schemaorg/TelevisionChannel.py +++ b/pydantic_schemaorg/TelevisionChannel.py @@ -11,5 +11,5 @@ class TelevisionChannel(BroadcastChannel): See: https://schema.org/TelevisionChannel Model depth: 4 """ - type_: str = Field(default="TelevisionChannel", alias='@type', constant=True) + type_: str = Field(default="TelevisionChannel", alias='@type', const=True) diff --git a/pydantic_schemaorg/TelevisionStation.py b/pydantic_schemaorg/TelevisionStation.py index c0cd7333..e051ed7e 100644 --- a/pydantic_schemaorg/TelevisionStation.py +++ b/pydantic_schemaorg/TelevisionStation.py @@ -11,5 +11,5 @@ class TelevisionStation(LocalBusiness): See: https://schema.org/TelevisionStation Model depth: 4 """ - type_: str = Field(default="TelevisionStation", alias='@type', constant=True) + type_: str = Field(default="TelevisionStation", alias='@type', const=True) diff --git a/pydantic_schemaorg/TennisComplex.py b/pydantic_schemaorg/TennisComplex.py index 6a6d7182..bc99a0b7 100644 --- a/pydantic_schemaorg/TennisComplex.py +++ b/pydantic_schemaorg/TennisComplex.py @@ -11,5 +11,5 @@ class TennisComplex(SportsActivityLocation): See: https://schema.org/TennisComplex Model depth: 5 """ - type_: str = Field(default="TennisComplex", alias='@type', constant=True) + type_: str = Field(default="TennisComplex", alias='@type', const=True) diff --git a/pydantic_schemaorg/Terminated.py b/pydantic_schemaorg/Terminated.py index be747e49..2645402b 100644 --- a/pydantic_schemaorg/Terminated.py +++ b/pydantic_schemaorg/Terminated.py @@ -11,5 +11,5 @@ class Terminated(MedicalStudyStatus): See: https://schema.org/Terminated Model depth: 6 """ - type_: str = Field(default="Terminated", alias='@type', constant=True) + type_: str = Field(default="Terminated", alias='@type', const=True) diff --git a/pydantic_schemaorg/Text.py b/pydantic_schemaorg/Text.py index 27dfecf4..e1dfe535 100644 --- a/pydantic_schemaorg/Text.py +++ b/pydantic_schemaorg/Text.py @@ -11,5 +11,5 @@ class Text(DataType): See: https://schema.org/Text Model depth: 5 """ - type_: str = Field(default="Text", alias='@type', constant=True) + type_: str = Field(default="Text", alias='@type', const=True) diff --git a/pydantic_schemaorg/TextDigitalDocument.py b/pydantic_schemaorg/TextDigitalDocument.py index 1e1fcf12..50fc5520 100644 --- a/pydantic_schemaorg/TextDigitalDocument.py +++ b/pydantic_schemaorg/TextDigitalDocument.py @@ -11,5 +11,5 @@ class TextDigitalDocument(DigitalDocument): See: https://schema.org/TextDigitalDocument Model depth: 4 """ - type_: str = Field(default="TextDigitalDocument", alias='@type', constant=True) + type_: str = Field(default="TextDigitalDocument", alias='@type', const=True) diff --git a/pydantic_schemaorg/TheaterEvent.py b/pydantic_schemaorg/TheaterEvent.py index c9da4ab1..56c287ff 100644 --- a/pydantic_schemaorg/TheaterEvent.py +++ b/pydantic_schemaorg/TheaterEvent.py @@ -11,5 +11,5 @@ class TheaterEvent(Event): See: https://schema.org/TheaterEvent Model depth: 3 """ - type_: str = Field(default="TheaterEvent", alias='@type', constant=True) + type_: str = Field(default="TheaterEvent", alias='@type', const=True) diff --git a/pydantic_schemaorg/TheaterGroup.py b/pydantic_schemaorg/TheaterGroup.py index c4240c1b..d0eb6c0f 100644 --- a/pydantic_schemaorg/TheaterGroup.py +++ b/pydantic_schemaorg/TheaterGroup.py @@ -11,5 +11,5 @@ class TheaterGroup(PerformingGroup): See: https://schema.org/TheaterGroup Model depth: 4 """ - type_: str = Field(default="TheaterGroup", alias='@type', constant=True) + type_: str = Field(default="TheaterGroup", alias='@type', const=True) diff --git a/pydantic_schemaorg/Therapeutic.py b/pydantic_schemaorg/Therapeutic.py index 9229a0df..9d12b445 100644 --- a/pydantic_schemaorg/Therapeutic.py +++ b/pydantic_schemaorg/Therapeutic.py @@ -11,5 +11,5 @@ class Therapeutic(MedicalDevicePurpose): See: https://schema.org/Therapeutic Model depth: 6 """ - type_: str = Field(default="Therapeutic", alias='@type', constant=True) + type_: str = Field(default="Therapeutic", alias='@type', const=True) diff --git a/pydantic_schemaorg/TherapeuticProcedure.py b/pydantic_schemaorg/TherapeuticProcedure.py index 7e6f4938..4b0f6660 100644 --- a/pydantic_schemaorg/TherapeuticProcedure.py +++ b/pydantic_schemaorg/TherapeuticProcedure.py @@ -15,7 +15,7 @@ class TherapeuticProcedure(MedicalProcedure): See: https://schema.org/TherapeuticProcedure Model depth: 4 """ - type_: str = Field(default="TherapeuticProcedure", alias='@type', constant=True) + type_: str = Field(default="TherapeuticProcedure", alias='@type', const=True) doseSchedule: Optional[Union[List[Union['DoseSchedule', str]], 'DoseSchedule', str]] = Field( default=None, description="A dosing schedule for the drug for a given population, either observed, recommended," diff --git a/pydantic_schemaorg/Thesis.py b/pydantic_schemaorg/Thesis.py index 29eb1406..055a2900 100644 --- a/pydantic_schemaorg/Thesis.py +++ b/pydantic_schemaorg/Thesis.py @@ -15,7 +15,7 @@ class Thesis(CreativeWork): See: https://schema.org/Thesis Model depth: 3 """ - type_: str = Field(default="Thesis", alias='@type', constant=True) + type_: str = Field(default="Thesis", alias='@type', const=True) inSupportOf: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Qualification, candidature, degree, application that Thesis supports.", diff --git a/pydantic_schemaorg/Thing.py b/pydantic_schemaorg/Thing.py index 6aea7716..7dd5330a 100644 --- a/pydantic_schemaorg/Thing.py +++ b/pydantic_schemaorg/Thing.py @@ -15,7 +15,7 @@ class Thing(SchemaOrgBase): See: https://schema.org/Thing Model depth: 1 """ - type_: str = Field(default="Thing", alias='@type', constant=True) + type_: str = Field(default="Thing", alias='@type', const=True) mainEntityOfPage: Optional[Union[List[Union[AnyUrl, 'URL', 'CreativeWork', str]], AnyUrl, 'URL', 'CreativeWork', str]] = Field( default=None, description="Indicates a page (or other CreativeWork) for which this thing is the main entity being" diff --git a/pydantic_schemaorg/Throat.py b/pydantic_schemaorg/Throat.py index 66a421ac..cd76a18d 100644 --- a/pydantic_schemaorg/Throat.py +++ b/pydantic_schemaorg/Throat.py @@ -11,5 +11,5 @@ class Throat(PhysicalExam): See: https://schema.org/Throat Model depth: 5 """ - type_: str = Field(default="Throat", alias='@type', constant=True) + type_: str = Field(default="Throat", alias='@type', const=True) diff --git a/pydantic_schemaorg/Thursday.py b/pydantic_schemaorg/Thursday.py index b2e36309..4ca2389e 100644 --- a/pydantic_schemaorg/Thursday.py +++ b/pydantic_schemaorg/Thursday.py @@ -11,5 +11,5 @@ class Thursday(DayOfWeek): See: https://schema.org/Thursday Model depth: 5 """ - type_: str = Field(default="Thursday", alias='@type', constant=True) + type_: str = Field(default="Thursday", alias='@type', const=True) diff --git a/pydantic_schemaorg/Ticket.py b/pydantic_schemaorg/Ticket.py index 1b8723e3..46ea1894 100644 --- a/pydantic_schemaorg/Ticket.py +++ b/pydantic_schemaorg/Ticket.py @@ -2,8 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from pydantic import AnyUrl -from decimal import Decimal +from pydantic import AnyUrl, StrictInt, StrictFloat from datetime import date, datetime @@ -17,8 +16,8 @@ class Ticket(Intangible): See: https://schema.org/Ticket Model depth: 3 """ - type_: str = Field(default="Ticket", alias='@type', constant=True) - underName: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + type_: str = Field(default="Ticket", alias='@type', const=True) + underName: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The person or organization the reservation or ticket is for.", ) @@ -38,7 +37,7 @@ class Ticket(Intangible): "for cryptocurrencies e.g. \"BTC\"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)" "(LETS) and other currency types e.g. \"Ithaca HOUR\".", ) - totalPrice: Optional[Union[List[Union[int, float, 'Number', str, 'Text', 'PriceSpecification']], int, float, 'Number', str, 'Text', 'PriceSpecification']] = Field( + totalPrice: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text', 'PriceSpecification']], StrictInt, StrictFloat, 'Number', str, 'Text', 'PriceSpecification']] = Field( default=None, description="The total price for the reservation or ticket, including applicable taxes, shipping," "etc. Usage guidelines: * Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030)" @@ -61,8 +60,8 @@ class Ticket(Intangible): if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Text import Text from pydantic_schemaorg.URL import URL from pydantic_schemaorg.Number import Number diff --git a/pydantic_schemaorg/TieAction.py b/pydantic_schemaorg/TieAction.py index 02c50c8e..0ef172d8 100644 --- a/pydantic_schemaorg/TieAction.py +++ b/pydantic_schemaorg/TieAction.py @@ -11,5 +11,5 @@ class TieAction(AchieveAction): See: https://schema.org/TieAction Model depth: 4 """ - type_: str = Field(default="TieAction", alias='@type', constant=True) + type_: str = Field(default="TieAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Time.py b/pydantic_schemaorg/Time.py index de21ba81..9ba27908 100644 --- a/pydantic_schemaorg/Time.py +++ b/pydantic_schemaorg/Time.py @@ -12,5 +12,5 @@ class Time(DataType): See: https://schema.org/Time Model depth: 5 """ - type_: str = Field(default="Time", alias='@type', constant=True) + type_: str = Field(default="Time", alias='@type', const=True) diff --git a/pydantic_schemaorg/TipAction.py b/pydantic_schemaorg/TipAction.py index 3e7e8da1..98c1d46c 100644 --- a/pydantic_schemaorg/TipAction.py +++ b/pydantic_schemaorg/TipAction.py @@ -14,15 +14,15 @@ class TipAction(TradeAction): See: https://schema.org/TipAction Model depth: 4 """ - type_: str = Field(default="TipAction", alias='@type', constant=True) - recipient: Optional[Union[List[Union['Organization', 'Person', 'ContactPoint', 'Audience', str]], 'Organization', 'Person', 'ContactPoint', 'Audience', str]] = Field( + type_: str = Field(default="TipAction", alias='@type', const=True) + recipient: Optional[Union[List[Union['ContactPoint', 'Audience', 'Organization', 'Person', str]], 'ContactPoint', 'Audience', 'Organization', 'Person', str]] = Field( default=None, description="A sub property of participant. The participant who is at the receiving end of the action.", ) if TYPE_CHECKING: - from pydantic_schemaorg.Organization import Organization - from pydantic_schemaorg.Person import Person from pydantic_schemaorg.ContactPoint import ContactPoint from pydantic_schemaorg.Audience import Audience + from pydantic_schemaorg.Organization import Organization + from pydantic_schemaorg.Person import Person diff --git a/pydantic_schemaorg/TireShop.py b/pydantic_schemaorg/TireShop.py index 0a89eeeb..29236045 100644 --- a/pydantic_schemaorg/TireShop.py +++ b/pydantic_schemaorg/TireShop.py @@ -11,5 +11,5 @@ class TireShop(Store): See: https://schema.org/TireShop Model depth: 5 """ - type_: str = Field(default="TireShop", alias='@type', constant=True) + type_: str = Field(default="TireShop", alias='@type', const=True) diff --git a/pydantic_schemaorg/TollFree.py b/pydantic_schemaorg/TollFree.py index 409892c0..2ecac14e 100644 --- a/pydantic_schemaorg/TollFree.py +++ b/pydantic_schemaorg/TollFree.py @@ -11,5 +11,5 @@ class TollFree(ContactPointOption): See: https://schema.org/TollFree Model depth: 5 """ - type_: str = Field(default="TollFree", alias='@type', constant=True) + type_: str = Field(default="TollFree", alias='@type', const=True) diff --git a/pydantic_schemaorg/TouristAttraction.py b/pydantic_schemaorg/TouristAttraction.py index e8aa4440..9a98ff95 100644 --- a/pydantic_schemaorg/TouristAttraction.py +++ b/pydantic_schemaorg/TouristAttraction.py @@ -18,7 +18,7 @@ class TouristAttraction(Place): See: https://schema.org/TouristAttraction Model depth: 3 """ - type_: str = Field(default="TouristAttraction", alias='@type', constant=True) + type_: str = Field(default="TouristAttraction", alias='@type', const=True) availableLanguage: Optional[Union[List[Union[str, 'Text', 'Language']], str, 'Text', 'Language']] = Field( default=None, description="A language someone may use with or at the item, service or place. Please use one of the language" diff --git a/pydantic_schemaorg/TouristDestination.py b/pydantic_schemaorg/TouristDestination.py index 5305d417..7c6b0d40 100644 --- a/pydantic_schemaorg/TouristDestination.py +++ b/pydantic_schemaorg/TouristDestination.py @@ -21,7 +21,7 @@ class TouristDestination(Place): See: https://schema.org/TouristDestination Model depth: 3 """ - type_: str = Field(default="TouristDestination", alias='@type', constant=True) + type_: str = Field(default="TouristDestination", alias='@type', const=True) includesAttraction: Optional[Union[List[Union['TouristAttraction', str]], 'TouristAttraction', str]] = Field( default=None, description="Attraction located at destination.", diff --git a/pydantic_schemaorg/TouristInformationCenter.py b/pydantic_schemaorg/TouristInformationCenter.py index d7d8df55..397b971c 100644 --- a/pydantic_schemaorg/TouristInformationCenter.py +++ b/pydantic_schemaorg/TouristInformationCenter.py @@ -11,5 +11,5 @@ class TouristInformationCenter(LocalBusiness): See: https://schema.org/TouristInformationCenter Model depth: 4 """ - type_: str = Field(default="TouristInformationCenter", alias='@type', constant=True) + type_: str = Field(default="TouristInformationCenter", alias='@type', const=True) diff --git a/pydantic_schemaorg/TouristTrip.py b/pydantic_schemaorg/TouristTrip.py index 60f447f0..d1c4f305 100644 --- a/pydantic_schemaorg/TouristTrip.py +++ b/pydantic_schemaorg/TouristTrip.py @@ -17,7 +17,7 @@ class TouristTrip(Trip): See: https://schema.org/TouristTrip Model depth: 4 """ - type_: str = Field(default="TouristTrip", alias='@type', constant=True) + type_: str = Field(default="TouristTrip", alias='@type', const=True) touristType: Optional[Union[List[Union[str, 'Text', 'Audience']], str, 'Text', 'Audience']] = Field( default=None, description="Attraction suitable for type(s) of tourist. eg. Children, visitors from a particular" diff --git a/pydantic_schemaorg/Toxicologic.py b/pydantic_schemaorg/Toxicologic.py index 29d7be7b..0d550944 100644 --- a/pydantic_schemaorg/Toxicologic.py +++ b/pydantic_schemaorg/Toxicologic.py @@ -12,5 +12,5 @@ class Toxicologic(MedicalSpecialty): See: https://schema.org/Toxicologic Model depth: 6 """ - type_: str = Field(default="Toxicologic", alias='@type', constant=True) + type_: str = Field(default="Toxicologic", alias='@type', const=True) diff --git a/pydantic_schemaorg/ToyStore.py b/pydantic_schemaorg/ToyStore.py index 2d0e0fb4..cfe3704a 100644 --- a/pydantic_schemaorg/ToyStore.py +++ b/pydantic_schemaorg/ToyStore.py @@ -11,5 +11,5 @@ class ToyStore(Store): See: https://schema.org/ToyStore Model depth: 5 """ - type_: str = Field(default="ToyStore", alias='@type', constant=True) + type_: str = Field(default="ToyStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/TrackAction.py b/pydantic_schemaorg/TrackAction.py index 7889dd43..f2d3ad6b 100644 --- a/pydantic_schemaorg/TrackAction.py +++ b/pydantic_schemaorg/TrackAction.py @@ -17,7 +17,7 @@ class TrackAction(FindAction): See: https://schema.org/TrackAction Model depth: 4 """ - type_: str = Field(default="TrackAction", alias='@type', constant=True) + type_: str = Field(default="TrackAction", alias='@type', const=True) deliveryMethod: Optional[Union[List[Union['DeliveryMethod', str]], 'DeliveryMethod', str]] = Field( default=None, description="A sub property of instrument. The method of delivery.", diff --git a/pydantic_schemaorg/TradeAction.py b/pydantic_schemaorg/TradeAction.py index 5dc34da1..1fa8dde1 100644 --- a/pydantic_schemaorg/TradeAction.py +++ b/pydantic_schemaorg/TradeAction.py @@ -2,7 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from decimal import Decimal +from pydantic import StrictInt, StrictFloat from pydantic import Field @@ -17,7 +17,7 @@ class TradeAction(Action): See: https://schema.org/TradeAction Model depth: 3 """ - type_: str = Field(default="TradeAction", alias='@type', constant=True) + type_: str = Field(default="TradeAction", alias='@type', const=True) priceCurrency: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The currency of the price, or a price component when attached to [[PriceSpecification]]" @@ -26,7 +26,7 @@ class TradeAction(Action): "for cryptocurrencies e.g. \"BTC\"; well known names for [Local Exchange Tradings Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)" "(LETS) and other currency types e.g. \"Ithaca HOUR\".", ) - price: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + price: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The offer price of a product, or of a price component when attached to PriceSpecification" "and its subtypes. Usage guidelines: * Use the [[priceCurrency]] property (with standard" diff --git a/pydantic_schemaorg/TraditionalChinese.py b/pydantic_schemaorg/TraditionalChinese.py index af590384..e3f3b6e3 100644 --- a/pydantic_schemaorg/TraditionalChinese.py +++ b/pydantic_schemaorg/TraditionalChinese.py @@ -13,5 +13,5 @@ class TraditionalChinese(MedicineSystem): See: https://schema.org/TraditionalChinese Model depth: 6 """ - type_: str = Field(default="TraditionalChinese", alias='@type', constant=True) + type_: str = Field(default="TraditionalChinese", alias='@type', const=True) diff --git a/pydantic_schemaorg/TrainReservation.py b/pydantic_schemaorg/TrainReservation.py index cd0df182..e6106b94 100644 --- a/pydantic_schemaorg/TrainReservation.py +++ b/pydantic_schemaorg/TrainReservation.py @@ -13,5 +13,5 @@ class TrainReservation(Reservation): See: https://schema.org/TrainReservation Model depth: 4 """ - type_: str = Field(default="TrainReservation", alias='@type', constant=True) + type_: str = Field(default="TrainReservation", alias='@type', const=True) diff --git a/pydantic_schemaorg/TrainStation.py b/pydantic_schemaorg/TrainStation.py index 77833eaf..0aac7131 100644 --- a/pydantic_schemaorg/TrainStation.py +++ b/pydantic_schemaorg/TrainStation.py @@ -11,5 +11,5 @@ class TrainStation(CivicStructure): See: https://schema.org/TrainStation Model depth: 4 """ - type_: str = Field(default="TrainStation", alias='@type', constant=True) + type_: str = Field(default="TrainStation", alias='@type', const=True) diff --git a/pydantic_schemaorg/TrainTrip.py b/pydantic_schemaorg/TrainTrip.py index 7b8dc57a..bc06af94 100644 --- a/pydantic_schemaorg/TrainTrip.py +++ b/pydantic_schemaorg/TrainTrip.py @@ -14,7 +14,7 @@ class TrainTrip(Trip): See: https://schema.org/TrainTrip Model depth: 4 """ - type_: str = Field(default="TrainTrip", alias='@type', constant=True) + type_: str = Field(default="TrainTrip", alias='@type', const=True) arrivalStation: Optional[Union[List[Union['TrainStation', str]], 'TrainStation', str]] = Field( default=None, description="The station where the train trip ends.", diff --git a/pydantic_schemaorg/TransferAction.py b/pydantic_schemaorg/TransferAction.py index 82df8adc..e2ca7dc6 100644 --- a/pydantic_schemaorg/TransferAction.py +++ b/pydantic_schemaorg/TransferAction.py @@ -15,7 +15,7 @@ class TransferAction(Action): See: https://schema.org/TransferAction Model depth: 3 """ - type_: str = Field(default="TransferAction", alias='@type', constant=True) + type_: str = Field(default="TransferAction", alias='@type', const=True) fromLocation: Optional[Union[List[Union['Place', str]], 'Place', str]] = Field( default=None, description="A sub property of location. The original location of the object or the agent before the" diff --git a/pydantic_schemaorg/TransformedContent.py b/pydantic_schemaorg/TransformedContent.py index f96faae7..da3ade58 100644 --- a/pydantic_schemaorg/TransformedContent.py +++ b/pydantic_schemaorg/TransformedContent.py @@ -21,5 +21,5 @@ class TransformedContent(MediaManipulationRatingEnumeration): See: https://schema.org/TransformedContent Model depth: 5 """ - type_: str = Field(default="TransformedContent", alias='@type', constant=True) + type_: str = Field(default="TransformedContent", alias='@type', const=True) diff --git a/pydantic_schemaorg/TransitMap.py b/pydantic_schemaorg/TransitMap.py index 2203afc7..dd9f9602 100644 --- a/pydantic_schemaorg/TransitMap.py +++ b/pydantic_schemaorg/TransitMap.py @@ -11,5 +11,5 @@ class TransitMap(MapCategoryType): See: https://schema.org/TransitMap Model depth: 5 """ - type_: str = Field(default="TransitMap", alias='@type', constant=True) + type_: str = Field(default="TransitMap", alias='@type', const=True) diff --git a/pydantic_schemaorg/TravelAction.py b/pydantic_schemaorg/TravelAction.py index 6ab0e030..173bf746 100644 --- a/pydantic_schemaorg/TravelAction.py +++ b/pydantic_schemaorg/TravelAction.py @@ -15,7 +15,7 @@ class TravelAction(MoveAction): See: https://schema.org/TravelAction Model depth: 4 """ - type_: str = Field(default="TravelAction", alias='@type', constant=True) + type_: str = Field(default="TravelAction", alias='@type', const=True) distance: Optional[Union[List[Union['Distance', str]], 'Distance', str]] = Field( default=None, description="The distance travelled, e.g. exercising or travelling.", diff --git a/pydantic_schemaorg/TravelAgency.py b/pydantic_schemaorg/TravelAgency.py index f48f0805..52bb89f3 100644 --- a/pydantic_schemaorg/TravelAgency.py +++ b/pydantic_schemaorg/TravelAgency.py @@ -11,5 +11,5 @@ class TravelAgency(LocalBusiness): See: https://schema.org/TravelAgency Model depth: 4 """ - type_: str = Field(default="TravelAgency", alias='@type', constant=True) + type_: str = Field(default="TravelAgency", alias='@type', const=True) diff --git a/pydantic_schemaorg/TreatmentIndication.py b/pydantic_schemaorg/TreatmentIndication.py index a6249a65..4864bf95 100644 --- a/pydantic_schemaorg/TreatmentIndication.py +++ b/pydantic_schemaorg/TreatmentIndication.py @@ -11,5 +11,5 @@ class TreatmentIndication(MedicalIndication): See: https://schema.org/TreatmentIndication Model depth: 4 """ - type_: str = Field(default="TreatmentIndication", alias='@type', constant=True) + type_: str = Field(default="TreatmentIndication", alias='@type', const=True) diff --git a/pydantic_schemaorg/TreatmentsHealthAspect.py b/pydantic_schemaorg/TreatmentsHealthAspect.py index 4ee2014e..d2ba4584 100644 --- a/pydantic_schemaorg/TreatmentsHealthAspect.py +++ b/pydantic_schemaorg/TreatmentsHealthAspect.py @@ -11,5 +11,5 @@ class TreatmentsHealthAspect(HealthAspectEnumeration): See: https://schema.org/TreatmentsHealthAspect Model depth: 5 """ - type_: str = Field(default="TreatmentsHealthAspect", alias='@type', constant=True) + type_: str = Field(default="TreatmentsHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/Trip.py b/pydantic_schemaorg/Trip.py index 9edfffce..65dba8b3 100644 --- a/pydantic_schemaorg/Trip.py +++ b/pydantic_schemaorg/Trip.py @@ -15,7 +15,7 @@ class Trip(Intangible): See: https://schema.org/Trip Model depth: 3 """ - type_: str = Field(default="Trip", alias='@type', constant=True) + type_: str = Field(default="Trip", alias='@type', const=True) offers: Optional[Union[List[Union['Offer', 'Demand', str]], 'Offer', 'Demand', str]] = Field( default=None, description="An offer to provide this item—for example, an offer to sell a product, rent the" @@ -43,7 +43,7 @@ class Trip(Intangible): default=None, description="The expected arrival time.", ) - provider: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + provider: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The service provider, service operator, or service performer; the goods producer." "Another party (a seller) may offer those services or goods on behalf of the provider." @@ -63,5 +63,5 @@ class Trip(Intangible): from pydantic_schemaorg.Time import Time from pydantic_schemaorg.ItemList import ItemList from pydantic_schemaorg.Place import Place - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization diff --git a/pydantic_schemaorg/TripleBlindedTrial.py b/pydantic_schemaorg/TripleBlindedTrial.py index d431fb45..998caaa9 100644 --- a/pydantic_schemaorg/TripleBlindedTrial.py +++ b/pydantic_schemaorg/TripleBlindedTrial.py @@ -13,5 +13,5 @@ class TripleBlindedTrial(MedicalTrialDesign): See: https://schema.org/TripleBlindedTrial Model depth: 6 """ - type_: str = Field(default="TripleBlindedTrial", alias='@type', constant=True) + type_: str = Field(default="TripleBlindedTrial", alias='@type', const=True) diff --git a/pydantic_schemaorg/True_.py b/pydantic_schemaorg/True_.py index 8880919b..92f56291 100644 --- a/pydantic_schemaorg/True_.py +++ b/pydantic_schemaorg/True_.py @@ -11,5 +11,5 @@ class True_(Boolean): See: https://schema.org/True Model depth: 6 """ - type_: str = Field(default="True", alias='@type', constant=True) + type_: str = Field(default="True", alias='@type', const=True) diff --git a/pydantic_schemaorg/Tuesday.py b/pydantic_schemaorg/Tuesday.py index 1530425c..48975997 100644 --- a/pydantic_schemaorg/Tuesday.py +++ b/pydantic_schemaorg/Tuesday.py @@ -11,5 +11,5 @@ class Tuesday(DayOfWeek): See: https://schema.org/Tuesday Model depth: 5 """ - type_: str = Field(default="Tuesday", alias='@type', constant=True) + type_: str = Field(default="Tuesday", alias='@type', const=True) diff --git a/pydantic_schemaorg/TypeAndQuantityNode.py b/pydantic_schemaorg/TypeAndQuantityNode.py index cf038661..620afd3d 100644 --- a/pydantic_schemaorg/TypeAndQuantityNode.py +++ b/pydantic_schemaorg/TypeAndQuantityNode.py @@ -2,8 +2,7 @@ from typing import TYPE_CHECKING from typing import List, Optional, Union -from pydantic import AnyUrl -from decimal import Decimal +from pydantic import AnyUrl, StrictInt, StrictFloat from pydantic import Field @@ -17,7 +16,7 @@ class TypeAndQuantityNode(StructuredValue): See: https://schema.org/TypeAndQuantityNode Model depth: 4 """ - type_: str = Field(default="TypeAndQuantityNode", alias='@type', constant=True) + type_: str = Field(default="TypeAndQuantityNode", alias='@type', const=True) businessFunction: Optional[Union[List[Union['BusinessFunction', str]], 'BusinessFunction', str]] = Field( default=None, description="The business function (e.g. sell, lease, repair, dispose) of the offer or component" @@ -37,7 +36,7 @@ class TypeAndQuantityNode(StructuredValue): description="The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL." "Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon.", ) - amountOfThisGood: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + amountOfThisGood: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The quantity of the goods included in the offer.", ) diff --git a/pydantic_schemaorg/TypesHealthAspect.py b/pydantic_schemaorg/TypesHealthAspect.py index fc486c94..9e8c08eb 100644 --- a/pydantic_schemaorg/TypesHealthAspect.py +++ b/pydantic_schemaorg/TypesHealthAspect.py @@ -11,5 +11,5 @@ class TypesHealthAspect(HealthAspectEnumeration): See: https://schema.org/TypesHealthAspect Model depth: 5 """ - type_: str = Field(default="TypesHealthAspect", alias='@type', constant=True) + type_: str = Field(default="TypesHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/UKNonprofitType.py b/pydantic_schemaorg/UKNonprofitType.py index 3ef034fb..d966e969 100644 --- a/pydantic_schemaorg/UKNonprofitType.py +++ b/pydantic_schemaorg/UKNonprofitType.py @@ -11,5 +11,5 @@ class UKNonprofitType(NonprofitType): See: https://schema.org/UKNonprofitType Model depth: 5 """ - type_: str = Field(default="UKNonprofitType", alias='@type', constant=True) + type_: str = Field(default="UKNonprofitType", alias='@type', const=True) diff --git a/pydantic_schemaorg/UKTrust.py b/pydantic_schemaorg/UKTrust.py index 44b8a65a..be0e298d 100644 --- a/pydantic_schemaorg/UKTrust.py +++ b/pydantic_schemaorg/UKTrust.py @@ -11,5 +11,5 @@ class UKTrust(UKNonprofitType): See: https://schema.org/UKTrust Model depth: 6 """ - type_: str = Field(default="UKTrust", alias='@type', constant=True) + type_: str = Field(default="UKTrust", alias='@type', const=True) diff --git a/pydantic_schemaorg/URL.py b/pydantic_schemaorg/URL.py index 9b98abbc..fb5d900c 100644 --- a/pydantic_schemaorg/URL.py +++ b/pydantic_schemaorg/URL.py @@ -11,5 +11,5 @@ class URL(Text): See: https://schema.org/URL Model depth: 6 """ - type_: str = Field(default="URL", alias='@type', constant=True) + type_: str = Field(default="URL", alias='@type', const=True) diff --git a/pydantic_schemaorg/USNonprofitType.py b/pydantic_schemaorg/USNonprofitType.py index 37638b35..9e80c188 100644 --- a/pydantic_schemaorg/USNonprofitType.py +++ b/pydantic_schemaorg/USNonprofitType.py @@ -11,5 +11,5 @@ class USNonprofitType(NonprofitType): See: https://schema.org/USNonprofitType Model depth: 5 """ - type_: str = Field(default="USNonprofitType", alias='@type', constant=True) + type_: str = Field(default="USNonprofitType", alias='@type', const=True) diff --git a/pydantic_schemaorg/Ultrasound.py b/pydantic_schemaorg/Ultrasound.py index c4a1baf4..46cb85e4 100644 --- a/pydantic_schemaorg/Ultrasound.py +++ b/pydantic_schemaorg/Ultrasound.py @@ -11,5 +11,5 @@ class Ultrasound(MedicalImagingTechnique): See: https://schema.org/Ultrasound Model depth: 6 """ - type_: str = Field(default="Ultrasound", alias='@type', constant=True) + type_: str = Field(default="Ultrasound", alias='@type', const=True) diff --git a/pydantic_schemaorg/UnRegisterAction.py b/pydantic_schemaorg/UnRegisterAction.py index f3f39129..2fc59447 100644 --- a/pydantic_schemaorg/UnRegisterAction.py +++ b/pydantic_schemaorg/UnRegisterAction.py @@ -14,5 +14,5 @@ class UnRegisterAction(InteractAction): See: https://schema.org/UnRegisterAction Model depth: 4 """ - type_: str = Field(default="UnRegisterAction", alias='@type', constant=True) + type_: str = Field(default="UnRegisterAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/UnemploymentSupport.py b/pydantic_schemaorg/UnemploymentSupport.py index daa5c421..2e515276 100644 --- a/pydantic_schemaorg/UnemploymentSupport.py +++ b/pydantic_schemaorg/UnemploymentSupport.py @@ -11,5 +11,5 @@ class UnemploymentSupport(GovernmentBenefitsType): See: https://schema.org/UnemploymentSupport Model depth: 5 """ - type_: str = Field(default="UnemploymentSupport", alias='@type', constant=True) + type_: str = Field(default="UnemploymentSupport", alias='@type', const=True) diff --git a/pydantic_schemaorg/UnincorporatedAssociationCharity.py b/pydantic_schemaorg/UnincorporatedAssociationCharity.py index 17b726dc..54e585bb 100644 --- a/pydantic_schemaorg/UnincorporatedAssociationCharity.py +++ b/pydantic_schemaorg/UnincorporatedAssociationCharity.py @@ -12,5 +12,5 @@ class UnincorporatedAssociationCharity(UKNonprofitType): See: https://schema.org/UnincorporatedAssociationCharity Model depth: 6 """ - type_: str = Field(default="UnincorporatedAssociationCharity", alias='@type', constant=True) + type_: str = Field(default="UnincorporatedAssociationCharity", alias='@type', const=True) diff --git a/pydantic_schemaorg/UnitPriceSpecification.py b/pydantic_schemaorg/UnitPriceSpecification.py index c4a9305a..af0c169d 100644 --- a/pydantic_schemaorg/UnitPriceSpecification.py +++ b/pydantic_schemaorg/UnitPriceSpecification.py @@ -1,9 +1,8 @@ from __future__ import annotations from typing import TYPE_CHECKING -from decimal import Decimal +from pydantic import AnyUrl, StrictInt, StrictFloat from typing import List, Optional, Union -from pydantic import AnyUrl from pydantic import Field @@ -16,14 +15,14 @@ class UnitPriceSpecification(PriceSpecification): See: https://schema.org/UnitPriceSpecification Model depth: 5 """ - type_: str = Field(default="UnitPriceSpecification", alias='@type', constant=True) - billingStart: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + type_: str = Field(default="UnitPriceSpecification", alias='@type', const=True) + billingStart: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="Specifies after how much time this price (or price component) becomes valid and billing" "starts. Can be used, for example, to model a price increase after the first year of a subscription." "The unit of measurement is specified by the unitCode property.", ) - billingIncrement: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + billingIncrement: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="This property specifies the minimal quantity and rounding increment that will be the" "basis for the billing. The unit of measurement is specified by the unitCode property.", @@ -42,7 +41,7 @@ class UnitPriceSpecification(PriceSpecification): "PriceTypeEnumeration or as a free form text string for price types that are not already" "predefined in PriceTypeEnumeration.", ) - billingDuration: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', 'Duration', str]], int, float, 'Number', 'QuantitativeValue', 'Duration', str]] = Field( + billingDuration: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'Duration', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'Duration', 'QuantitativeValue', str]] = Field( default=None, description="Specifies for how long this price (or price component) will be billed. Can be used, for" "example, to model the contractual duration of a subscription or payment plan. Type can" @@ -71,7 +70,7 @@ class UnitPriceSpecification(PriceSpecification): from pydantic_schemaorg.Number import Number from pydantic_schemaorg.Text import Text from pydantic_schemaorg.PriceTypeEnumeration import PriceTypeEnumeration - from pydantic_schemaorg.QuantitativeValue import QuantitativeValue from pydantic_schemaorg.Duration import Duration + from pydantic_schemaorg.QuantitativeValue import QuantitativeValue from pydantic_schemaorg.URL import URL from pydantic_schemaorg.PriceComponentTypeEnumeration import PriceComponentTypeEnumeration diff --git a/pydantic_schemaorg/UnofficialLegalValue.py b/pydantic_schemaorg/UnofficialLegalValue.py index 02cfc051..b8be6b32 100644 --- a/pydantic_schemaorg/UnofficialLegalValue.py +++ b/pydantic_schemaorg/UnofficialLegalValue.py @@ -12,5 +12,5 @@ class UnofficialLegalValue(LegalValueLevel): See: https://schema.org/UnofficialLegalValue Model depth: 5 """ - type_: str = Field(default="UnofficialLegalValue", alias='@type', constant=True) + type_: str = Field(default="UnofficialLegalValue", alias='@type', const=True) diff --git a/pydantic_schemaorg/UpdateAction.py b/pydantic_schemaorg/UpdateAction.py index 59d26b7c..864528f9 100644 --- a/pydantic_schemaorg/UpdateAction.py +++ b/pydantic_schemaorg/UpdateAction.py @@ -14,7 +14,7 @@ class UpdateAction(Action): See: https://schema.org/UpdateAction Model depth: 3 """ - type_: str = Field(default="UpdateAction", alias='@type', constant=True) + type_: str = Field(default="UpdateAction", alias='@type', const=True) collection: Optional[Union[List[Union['Thing', str]], 'Thing', str]] = Field( default=None, description="A sub property of object. The collection target of the action.", diff --git a/pydantic_schemaorg/Urologic.py b/pydantic_schemaorg/Urologic.py index 8c09abbb..eb56e65a 100644 --- a/pydantic_schemaorg/Urologic.py +++ b/pydantic_schemaorg/Urologic.py @@ -12,5 +12,5 @@ class Urologic(MedicalSpecialty): See: https://schema.org/Urologic Model depth: 6 """ - type_: str = Field(default="Urologic", alias='@type', constant=True) + type_: str = Field(default="Urologic", alias='@type', const=True) diff --git a/pydantic_schemaorg/UsageOrScheduleHealthAspect.py b/pydantic_schemaorg/UsageOrScheduleHealthAspect.py index e92defaf..b69a5a7b 100644 --- a/pydantic_schemaorg/UsageOrScheduleHealthAspect.py +++ b/pydantic_schemaorg/UsageOrScheduleHealthAspect.py @@ -11,5 +11,5 @@ class UsageOrScheduleHealthAspect(HealthAspectEnumeration): See: https://schema.org/UsageOrScheduleHealthAspect Model depth: 5 """ - type_: str = Field(default="UsageOrScheduleHealthAspect", alias='@type', constant=True) + type_: str = Field(default="UsageOrScheduleHealthAspect", alias='@type', const=True) diff --git a/pydantic_schemaorg/UseAction.py b/pydantic_schemaorg/UseAction.py index a4ff3667..882f35a9 100644 --- a/pydantic_schemaorg/UseAction.py +++ b/pydantic_schemaorg/UseAction.py @@ -11,5 +11,5 @@ class UseAction(ConsumeAction): See: https://schema.org/UseAction Model depth: 4 """ - type_: str = Field(default="UseAction", alias='@type', constant=True) + type_: str = Field(default="UseAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/UsedCondition.py b/pydantic_schemaorg/UsedCondition.py index 1259d001..e74741c9 100644 --- a/pydantic_schemaorg/UsedCondition.py +++ b/pydantic_schemaorg/UsedCondition.py @@ -11,5 +11,5 @@ class UsedCondition(OfferItemCondition): See: https://schema.org/UsedCondition Model depth: 5 """ - type_: str = Field(default="UsedCondition", alias='@type', constant=True) + type_: str = Field(default="UsedCondition", alias='@type', const=True) diff --git a/pydantic_schemaorg/UserBlocks.py b/pydantic_schemaorg/UserBlocks.py index 645d1c72..9ee349e5 100644 --- a/pydantic_schemaorg/UserBlocks.py +++ b/pydantic_schemaorg/UserBlocks.py @@ -13,5 +13,5 @@ class UserBlocks(UserInteraction): See: https://schema.org/UserBlocks Model depth: 4 """ - type_: str = Field(default="UserBlocks", alias='@type', constant=True) + type_: str = Field(default="UserBlocks", alias='@type', const=True) diff --git a/pydantic_schemaorg/UserCheckins.py b/pydantic_schemaorg/UserCheckins.py index 20f91b06..ed4012d4 100644 --- a/pydantic_schemaorg/UserCheckins.py +++ b/pydantic_schemaorg/UserCheckins.py @@ -13,5 +13,5 @@ class UserCheckins(UserInteraction): See: https://schema.org/UserCheckins Model depth: 4 """ - type_: str = Field(default="UserCheckins", alias='@type', constant=True) + type_: str = Field(default="UserCheckins", alias='@type', const=True) diff --git a/pydantic_schemaorg/UserComments.py b/pydantic_schemaorg/UserComments.py index 3c036504..f118f057 100644 --- a/pydantic_schemaorg/UserComments.py +++ b/pydantic_schemaorg/UserComments.py @@ -18,7 +18,7 @@ class UserComments(UserInteraction): See: https://schema.org/UserComments Model depth: 4 """ - type_: str = Field(default="UserComments", alias='@type', constant=True) + type_: str = Field(default="UserComments", alias='@type', const=True) discusses: Optional[Union[List[Union['CreativeWork', str]], 'CreativeWork', str]] = Field( default=None, description="Specifies the CreativeWork associated with the UserComment.", @@ -35,7 +35,7 @@ class UserComments(UserInteraction): default=None, description="The time at which the UserComment was made.", ) - creator: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + creator: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="The creator/author of this CreativeWork. This is the same as the Author property for" "CreativeWork.", @@ -48,5 +48,5 @@ class UserComments(UserInteraction): from pydantic_schemaorg.URL import URL from pydantic_schemaorg.DateTime import DateTime from pydantic_schemaorg.Date import Date - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization diff --git a/pydantic_schemaorg/UserDownloads.py b/pydantic_schemaorg/UserDownloads.py index 53c8200b..5106fbc0 100644 --- a/pydantic_schemaorg/UserDownloads.py +++ b/pydantic_schemaorg/UserDownloads.py @@ -13,5 +13,5 @@ class UserDownloads(UserInteraction): See: https://schema.org/UserDownloads Model depth: 4 """ - type_: str = Field(default="UserDownloads", alias='@type', constant=True) + type_: str = Field(default="UserDownloads", alias='@type', const=True) diff --git a/pydantic_schemaorg/UserInteraction.py b/pydantic_schemaorg/UserInteraction.py index ae422a80..0db8fa06 100644 --- a/pydantic_schemaorg/UserInteraction.py +++ b/pydantic_schemaorg/UserInteraction.py @@ -13,5 +13,5 @@ class UserInteraction(Event): See: https://schema.org/UserInteraction Model depth: 3 """ - type_: str = Field(default="UserInteraction", alias='@type', constant=True) + type_: str = Field(default="UserInteraction", alias='@type', const=True) diff --git a/pydantic_schemaorg/UserLikes.py b/pydantic_schemaorg/UserLikes.py index cb78710d..0b451b21 100644 --- a/pydantic_schemaorg/UserLikes.py +++ b/pydantic_schemaorg/UserLikes.py @@ -13,5 +13,5 @@ class UserLikes(UserInteraction): See: https://schema.org/UserLikes Model depth: 4 """ - type_: str = Field(default="UserLikes", alias='@type', constant=True) + type_: str = Field(default="UserLikes", alias='@type', const=True) diff --git a/pydantic_schemaorg/UserPageVisits.py b/pydantic_schemaorg/UserPageVisits.py index 534d6c1a..0307f7a3 100644 --- a/pydantic_schemaorg/UserPageVisits.py +++ b/pydantic_schemaorg/UserPageVisits.py @@ -13,5 +13,5 @@ class UserPageVisits(UserInteraction): See: https://schema.org/UserPageVisits Model depth: 4 """ - type_: str = Field(default="UserPageVisits", alias='@type', constant=True) + type_: str = Field(default="UserPageVisits", alias='@type', const=True) diff --git a/pydantic_schemaorg/UserPlays.py b/pydantic_schemaorg/UserPlays.py index c4b41cf6..978f060a 100644 --- a/pydantic_schemaorg/UserPlays.py +++ b/pydantic_schemaorg/UserPlays.py @@ -13,5 +13,5 @@ class UserPlays(UserInteraction): See: https://schema.org/UserPlays Model depth: 4 """ - type_: str = Field(default="UserPlays", alias='@type', constant=True) + type_: str = Field(default="UserPlays", alias='@type', const=True) diff --git a/pydantic_schemaorg/UserPlusOnes.py b/pydantic_schemaorg/UserPlusOnes.py index e039cbc0..2d93d7aa 100644 --- a/pydantic_schemaorg/UserPlusOnes.py +++ b/pydantic_schemaorg/UserPlusOnes.py @@ -13,5 +13,5 @@ class UserPlusOnes(UserInteraction): See: https://schema.org/UserPlusOnes Model depth: 4 """ - type_: str = Field(default="UserPlusOnes", alias='@type', constant=True) + type_: str = Field(default="UserPlusOnes", alias='@type', const=True) diff --git a/pydantic_schemaorg/UserReview.py b/pydantic_schemaorg/UserReview.py index b82103e5..13d5fd15 100644 --- a/pydantic_schemaorg/UserReview.py +++ b/pydantic_schemaorg/UserReview.py @@ -12,5 +12,5 @@ class UserReview(Review): See: https://schema.org/UserReview Model depth: 4 """ - type_: str = Field(default="UserReview", alias='@type', constant=True) + type_: str = Field(default="UserReview", alias='@type', const=True) diff --git a/pydantic_schemaorg/UserTweets.py b/pydantic_schemaorg/UserTweets.py index 5e9253f8..0c2ee545 100644 --- a/pydantic_schemaorg/UserTweets.py +++ b/pydantic_schemaorg/UserTweets.py @@ -13,5 +13,5 @@ class UserTweets(UserInteraction): See: https://schema.org/UserTweets Model depth: 4 """ - type_: str = Field(default="UserTweets", alias='@type', constant=True) + type_: str = Field(default="UserTweets", alias='@type', const=True) diff --git a/pydantic_schemaorg/VeganDiet.py b/pydantic_schemaorg/VeganDiet.py index c5d74f78..11f5c3f5 100644 --- a/pydantic_schemaorg/VeganDiet.py +++ b/pydantic_schemaorg/VeganDiet.py @@ -11,5 +11,5 @@ class VeganDiet(RestrictedDiet): See: https://schema.org/VeganDiet Model depth: 5 """ - type_: str = Field(default="VeganDiet", alias='@type', constant=True) + type_: str = Field(default="VeganDiet", alias='@type', const=True) diff --git a/pydantic_schemaorg/VegetarianDiet.py b/pydantic_schemaorg/VegetarianDiet.py index d0b677b7..d5bfd7e7 100644 --- a/pydantic_schemaorg/VegetarianDiet.py +++ b/pydantic_schemaorg/VegetarianDiet.py @@ -11,5 +11,5 @@ class VegetarianDiet(RestrictedDiet): See: https://schema.org/VegetarianDiet Model depth: 5 """ - type_: str = Field(default="VegetarianDiet", alias='@type', constant=True) + type_: str = Field(default="VegetarianDiet", alias='@type', const=True) diff --git a/pydantic_schemaorg/Vehicle.py b/pydantic_schemaorg/Vehicle.py index c0cef6ef..5587d3b8 100644 --- a/pydantic_schemaorg/Vehicle.py +++ b/pydantic_schemaorg/Vehicle.py @@ -1,9 +1,8 @@ from __future__ import annotations from typing import TYPE_CHECKING -from pydantic import AnyUrl +from pydantic import AnyUrl, StrictInt, StrictFloat from typing import List, Optional, Union -from decimal import Decimal from datetime import date @@ -18,7 +17,7 @@ class Vehicle(Product): See: https://schema.org/Vehicle Model depth: 3 """ - type_: str = Field(default="Vehicle", alias='@type', constant=True) + type_: str = Field(default="Vehicle", alias='@type', const=True) meetsEmissionStandard: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text', 'QualitativeValue']], AnyUrl, 'URL', str, 'Text', 'QualitativeValue']] = Field( default=None, description="Indicates that the vehicle meets the respective emission standard.", @@ -27,7 +26,7 @@ class Vehicle(Product): default=None, description="A textual description of known damages, both repaired and unrepaired.", ) - numberOfDoors: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + numberOfDoors: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The number of doors. Typical unit code(s): C62", ) @@ -52,7 +51,7 @@ class Vehicle(Product): description="The Vehicle Identification Number (VIN) is a unique serial number used by the automotive" "industry to identify individual motor vehicles.", ) - numberOfAxles: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + numberOfAxles: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The number of axles. Typical unit code(s): C62", ) @@ -71,7 +70,7 @@ class Vehicle(Product): default=None, description="The color or color combination of the interior of the vehicle.", ) - seatingCapacity: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + seatingCapacity: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The number of persons that can be seated (e.g. in a vehicle), both in terms of the physical" "space available, and in terms of limitations set by law. Typical unit code(s): C62 for" @@ -147,7 +146,7 @@ class Vehicle(Product): "the speed range. You can link to information about how the given value has been determined" "using the [[valueReference]] property.", ) - emissionsCO2: Optional[Union[List[Union[int, float, 'Number', str]], int, float, 'Number', str]] = Field( + emissionsCO2: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str]], StrictInt, StrictFloat, 'Number', str]] = Field( default=None, description="The CO2 emissions in g/km. When used in combination with a QuantitativeValue, put \"g/km\"" "into the unitText property of that value, since there is no UN/CEFACT Common Code for" @@ -165,12 +164,12 @@ class Vehicle(Product): "node that provides additional information using [[valueReference]]. * Note 3: Note" "that you can use [[minValue]] and [[maxValue]] to indicate ranges.", ) - numberOfForwardGears: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + numberOfForwardGears: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The total number of forward gears available for the transmission system of the vehicle." "Typical unit code(s): C62", ) - numberOfAirbags: Optional[Union[List[Union[int, float, 'Number', str, 'Text']], int, float, 'Number', str, 'Text']] = Field( + numberOfAirbags: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', str, 'Text']], StrictInt, StrictFloat, 'Number', str, 'Text']] = Field( default=None, description="The number or type of airbags in the vehicle.", ) @@ -187,7 +186,7 @@ class Vehicle(Product): default=None, description="The position of the steering wheel or similar device (mostly for cars).", ) - numberOfPreviousOwners: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + numberOfPreviousOwners: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The number of owners of the vehicle, including the current one. Typical unit code(s):" "C62", @@ -232,7 +231,7 @@ class Vehicle(Product): "node that provides additional information using [[valueReference]]. * Note 3: Note" "that you can use [[minValue]] and [[maxValue]] to indicate ranges.", ) - vehicleSeatingCapacity: Optional[Union[List[Union[int, float, 'Number', 'QuantitativeValue', str]], int, float, 'Number', 'QuantitativeValue', str]] = Field( + vehicleSeatingCapacity: Optional[Union[List[Union[StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]], StrictInt, StrictFloat, 'Number', 'QuantitativeValue', str]] = Field( default=None, description="The number of passengers that can be seated in the vehicle, both in terms of the physical" "space available, and in terms of limitations set by law. Typical unit code(s): C62 for" diff --git a/pydantic_schemaorg/Vein.py b/pydantic_schemaorg/Vein.py index 740c69af..0de7544c 100644 --- a/pydantic_schemaorg/Vein.py +++ b/pydantic_schemaorg/Vein.py @@ -14,7 +14,7 @@ class Vein(Vessel): See: https://schema.org/Vein Model depth: 5 """ - type_: str = Field(default="Vein", alias='@type', constant=True) + type_: str = Field(default="Vein", alias='@type', const=True) tributary: Optional[Union[List[Union['AnatomicalStructure', str]], 'AnatomicalStructure', str]] = Field( default=None, description="The anatomical or organ system that the vein flows into; a larger structure that the vein" @@ -24,7 +24,7 @@ class Vein(Vessel): default=None, description="The vasculature that the vein drains into.", ) - regionDrained: Optional[Union[List[Union['AnatomicalStructure', 'AnatomicalSystem', str]], 'AnatomicalStructure', 'AnatomicalSystem', str]] = Field( + regionDrained: Optional[Union[List[Union['AnatomicalSystem', 'AnatomicalStructure', str]], 'AnatomicalSystem', 'AnatomicalStructure', str]] = Field( default=None, description="The anatomical or organ system drained by this vessel; generally refers to a specific" "part of an organ.", diff --git a/pydantic_schemaorg/VenueMap.py b/pydantic_schemaorg/VenueMap.py index 717b21f4..e8340dd8 100644 --- a/pydantic_schemaorg/VenueMap.py +++ b/pydantic_schemaorg/VenueMap.py @@ -11,5 +11,5 @@ class VenueMap(MapCategoryType): See: https://schema.org/VenueMap Model depth: 5 """ - type_: str = Field(default="VenueMap", alias='@type', constant=True) + type_: str = Field(default="VenueMap", alias='@type', const=True) diff --git a/pydantic_schemaorg/Vessel.py b/pydantic_schemaorg/Vessel.py index c4c57421..50677d81 100644 --- a/pydantic_schemaorg/Vessel.py +++ b/pydantic_schemaorg/Vessel.py @@ -12,5 +12,5 @@ class Vessel(AnatomicalStructure): See: https://schema.org/Vessel Model depth: 4 """ - type_: str = Field(default="Vessel", alias='@type', constant=True) + type_: str = Field(default="Vessel", alias='@type', const=True) diff --git a/pydantic_schemaorg/VeterinaryCare.py b/pydantic_schemaorg/VeterinaryCare.py index 08d01d4c..0ee7948b 100644 --- a/pydantic_schemaorg/VeterinaryCare.py +++ b/pydantic_schemaorg/VeterinaryCare.py @@ -11,5 +11,5 @@ class VeterinaryCare(MedicalOrganization): See: https://schema.org/VeterinaryCare Model depth: 4 """ - type_: str = Field(default="VeterinaryCare", alias='@type', constant=True) + type_: str = Field(default="VeterinaryCare", alias='@type', const=True) diff --git a/pydantic_schemaorg/VideoGallery.py b/pydantic_schemaorg/VideoGallery.py index 01e1b35c..8e5fc5d4 100644 --- a/pydantic_schemaorg/VideoGallery.py +++ b/pydantic_schemaorg/VideoGallery.py @@ -11,5 +11,5 @@ class VideoGallery(MediaGallery): See: https://schema.org/VideoGallery Model depth: 6 """ - type_: str = Field(default="VideoGallery", alias='@type', constant=True) + type_: str = Field(default="VideoGallery", alias='@type', const=True) diff --git a/pydantic_schemaorg/VideoGame.py b/pydantic_schemaorg/VideoGame.py index f0542562..7167b7a5 100644 --- a/pydantic_schemaorg/VideoGame.py +++ b/pydantic_schemaorg/VideoGame.py @@ -17,7 +17,7 @@ class VideoGame(SoftwareApplication, Game): See: https://schema.org/VideoGame Model depth: 4 """ - type_: str = Field(default="VideoGame", alias='@type', constant=True) + type_: str = Field(default="VideoGame", alias='@type', const=True) actors: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual" diff --git a/pydantic_schemaorg/VideoGameClip.py b/pydantic_schemaorg/VideoGameClip.py index 2fa14f3e..106d1139 100644 --- a/pydantic_schemaorg/VideoGameClip.py +++ b/pydantic_schemaorg/VideoGameClip.py @@ -11,5 +11,5 @@ class VideoGameClip(Clip): See: https://schema.org/VideoGameClip Model depth: 4 """ - type_: str = Field(default="VideoGameClip", alias='@type', constant=True) + type_: str = Field(default="VideoGameClip", alias='@type', const=True) diff --git a/pydantic_schemaorg/VideoGameSeries.py b/pydantic_schemaorg/VideoGameSeries.py index 9522952d..a59dc618 100644 --- a/pydantic_schemaorg/VideoGameSeries.py +++ b/pydantic_schemaorg/VideoGameSeries.py @@ -15,7 +15,7 @@ class VideoGameSeries(CreativeWorkSeries): See: https://schema.org/VideoGameSeries Model depth: 4 """ - type_: str = Field(default="VideoGameSeries", alias='@type', constant=True) + type_: str = Field(default="VideoGameSeries", alias='@type', const=True) actors: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual" @@ -29,7 +29,7 @@ class VideoGameSeries(CreativeWorkSeries): default=None, description="The number of seasons in this series.", ) - gameLocation: Optional[Union[List[Union[AnyUrl, 'URL', 'Place', 'PostalAddress', str]], AnyUrl, 'URL', 'Place', 'PostalAddress', str]] = Field( + gameLocation: Optional[Union[List[Union[AnyUrl, 'URL', 'PostalAddress', 'Place', str]], AnyUrl, 'URL', 'PostalAddress', 'Place', str]] = Field( default=None, description="Real or fictional location of the game (or part of game).", ) @@ -121,8 +121,8 @@ class VideoGameSeries(CreativeWorkSeries): from pydantic_schemaorg.CreativeWorkSeason import CreativeWorkSeason from pydantic_schemaorg.Integer import Integer from pydantic_schemaorg.URL import URL - from pydantic_schemaorg.Place import Place from pydantic_schemaorg.PostalAddress import PostalAddress + from pydantic_schemaorg.Place import Place from pydantic_schemaorg.VideoObject import VideoObject from pydantic_schemaorg.Episode import Episode from pydantic_schemaorg.Organization import Organization diff --git a/pydantic_schemaorg/VideoObject.py b/pydantic_schemaorg/VideoObject.py index ac6e1e64..2aa012a9 100644 --- a/pydantic_schemaorg/VideoObject.py +++ b/pydantic_schemaorg/VideoObject.py @@ -14,7 +14,7 @@ class VideoObject(MediaObject): See: https://schema.org/VideoObject Model depth: 4 """ - type_: str = Field(default="VideoObject", alias='@type', constant=True) + type_: str = Field(default="VideoObject", alias='@type', const=True) actors: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="An actor, e.g. in tv, radio, movie, video games etc. Actors can be associated with individual" diff --git a/pydantic_schemaorg/VideoObjectSnapshot.py b/pydantic_schemaorg/VideoObjectSnapshot.py index 5d4fe895..7218475e 100644 --- a/pydantic_schemaorg/VideoObjectSnapshot.py +++ b/pydantic_schemaorg/VideoObjectSnapshot.py @@ -15,5 +15,5 @@ class VideoObjectSnapshot(VideoObject): See: https://schema.org/VideoObjectSnapshot Model depth: 5 """ - type_: str = Field(default="VideoObjectSnapshot", alias='@type', constant=True) + type_: str = Field(default="VideoObjectSnapshot", alias='@type', const=True) diff --git a/pydantic_schemaorg/ViewAction.py b/pydantic_schemaorg/ViewAction.py index a251278c..09383b28 100644 --- a/pydantic_schemaorg/ViewAction.py +++ b/pydantic_schemaorg/ViewAction.py @@ -11,5 +11,5 @@ class ViewAction(ConsumeAction): See: https://schema.org/ViewAction Model depth: 4 """ - type_: str = Field(default="ViewAction", alias='@type', constant=True) + type_: str = Field(default="ViewAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/VinylFormat.py b/pydantic_schemaorg/VinylFormat.py index 767fab1e..db3331b3 100644 --- a/pydantic_schemaorg/VinylFormat.py +++ b/pydantic_schemaorg/VinylFormat.py @@ -11,5 +11,5 @@ class VinylFormat(MusicReleaseFormatType): See: https://schema.org/VinylFormat Model depth: 5 """ - type_: str = Field(default="VinylFormat", alias='@type', constant=True) + type_: str = Field(default="VinylFormat", alias='@type', const=True) diff --git a/pydantic_schemaorg/VirtualLocation.py b/pydantic_schemaorg/VirtualLocation.py index 68dc5d36..9bbf6730 100644 --- a/pydantic_schemaorg/VirtualLocation.py +++ b/pydantic_schemaorg/VirtualLocation.py @@ -14,5 +14,5 @@ class VirtualLocation(Intangible): See: https://schema.org/VirtualLocation Model depth: 3 """ - type_: str = Field(default="VirtualLocation", alias='@type', constant=True) + type_: str = Field(default="VirtualLocation", alias='@type', const=True) diff --git a/pydantic_schemaorg/Virus.py b/pydantic_schemaorg/Virus.py index f69a5391..81111914 100644 --- a/pydantic_schemaorg/Virus.py +++ b/pydantic_schemaorg/Virus.py @@ -11,5 +11,5 @@ class Virus(InfectiousAgentClass): See: https://schema.org/Virus Model depth: 6 """ - type_: str = Field(default="Virus", alias='@type', constant=True) + type_: str = Field(default="Virus", alias='@type', const=True) diff --git a/pydantic_schemaorg/VisualArtsEvent.py b/pydantic_schemaorg/VisualArtsEvent.py index ffe2416c..7fc229ee 100644 --- a/pydantic_schemaorg/VisualArtsEvent.py +++ b/pydantic_schemaorg/VisualArtsEvent.py @@ -11,5 +11,5 @@ class VisualArtsEvent(Event): See: https://schema.org/VisualArtsEvent Model depth: 3 """ - type_: str = Field(default="VisualArtsEvent", alias='@type', constant=True) + type_: str = Field(default="VisualArtsEvent", alias='@type', const=True) diff --git a/pydantic_schemaorg/VisualArtwork.py b/pydantic_schemaorg/VisualArtwork.py index 4f91bdca..7991dae6 100644 --- a/pydantic_schemaorg/VisualArtwork.py +++ b/pydantic_schemaorg/VisualArtwork.py @@ -15,7 +15,7 @@ class VisualArtwork(CreativeWork): See: https://schema.org/VisualArtwork Model depth: 3 """ - type_: str = Field(default="VisualArtwork", alias='@type', constant=True) + type_: str = Field(default="VisualArtwork", alias='@type', const=True) artworkSurface: Optional[Union[List[Union[AnyUrl, 'URL', str, 'Text']], AnyUrl, 'URL', str, 'Text']] = Field( default=None, description="The supporting materials for the artwork, e.g. Canvas, Paper, Wood, Board, etc.", diff --git a/pydantic_schemaorg/VitalSign.py b/pydantic_schemaorg/VitalSign.py index ee37daf7..c394e170 100644 --- a/pydantic_schemaorg/VitalSign.py +++ b/pydantic_schemaorg/VitalSign.py @@ -12,5 +12,5 @@ class VitalSign(MedicalSign): See: https://schema.org/VitalSign Model depth: 6 """ - type_: str = Field(default="VitalSign", alias='@type', constant=True) + type_: str = Field(default="VitalSign", alias='@type', const=True) diff --git a/pydantic_schemaorg/Volcano.py b/pydantic_schemaorg/Volcano.py index 79802a7f..1c393cdd 100644 --- a/pydantic_schemaorg/Volcano.py +++ b/pydantic_schemaorg/Volcano.py @@ -11,5 +11,5 @@ class Volcano(Landform): See: https://schema.org/Volcano Model depth: 4 """ - type_: str = Field(default="Volcano", alias='@type', constant=True) + type_: str = Field(default="Volcano", alias='@type', const=True) diff --git a/pydantic_schemaorg/VoteAction.py b/pydantic_schemaorg/VoteAction.py index 967958c5..0b400b97 100644 --- a/pydantic_schemaorg/VoteAction.py +++ b/pydantic_schemaorg/VoteAction.py @@ -14,7 +14,7 @@ class VoteAction(ChooseAction): See: https://schema.org/VoteAction Model depth: 5 """ - type_: str = Field(default="VoteAction", alias='@type', constant=True) + type_: str = Field(default="VoteAction", alias='@type', const=True) candidate: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="A sub property of object. The candidate subject of this action.", diff --git a/pydantic_schemaorg/WPAdBlock.py b/pydantic_schemaorg/WPAdBlock.py index 499d1b70..f1733525 100644 --- a/pydantic_schemaorg/WPAdBlock.py +++ b/pydantic_schemaorg/WPAdBlock.py @@ -11,5 +11,5 @@ class WPAdBlock(WebPageElement): See: https://schema.org/WPAdBlock Model depth: 4 """ - type_: str = Field(default="WPAdBlock", alias='@type', constant=True) + type_: str = Field(default="WPAdBlock", alias='@type', const=True) diff --git a/pydantic_schemaorg/WPFooter.py b/pydantic_schemaorg/WPFooter.py index 3573d043..063da775 100644 --- a/pydantic_schemaorg/WPFooter.py +++ b/pydantic_schemaorg/WPFooter.py @@ -11,5 +11,5 @@ class WPFooter(WebPageElement): See: https://schema.org/WPFooter Model depth: 4 """ - type_: str = Field(default="WPFooter", alias='@type', constant=True) + type_: str = Field(default="WPFooter", alias='@type', const=True) diff --git a/pydantic_schemaorg/WPHeader.py b/pydantic_schemaorg/WPHeader.py index d39c0e7c..caeeed3d 100644 --- a/pydantic_schemaorg/WPHeader.py +++ b/pydantic_schemaorg/WPHeader.py @@ -11,5 +11,5 @@ class WPHeader(WebPageElement): See: https://schema.org/WPHeader Model depth: 4 """ - type_: str = Field(default="WPHeader", alias='@type', constant=True) + type_: str = Field(default="WPHeader", alias='@type', const=True) diff --git a/pydantic_schemaorg/WPSideBar.py b/pydantic_schemaorg/WPSideBar.py index a7ba3f3e..8b4582bb 100644 --- a/pydantic_schemaorg/WPSideBar.py +++ b/pydantic_schemaorg/WPSideBar.py @@ -11,5 +11,5 @@ class WPSideBar(WebPageElement): See: https://schema.org/WPSideBar Model depth: 4 """ - type_: str = Field(default="WPSideBar", alias='@type', constant=True) + type_: str = Field(default="WPSideBar", alias='@type', const=True) diff --git a/pydantic_schemaorg/WantAction.py b/pydantic_schemaorg/WantAction.py index e07c1bb3..83ec2be6 100644 --- a/pydantic_schemaorg/WantAction.py +++ b/pydantic_schemaorg/WantAction.py @@ -11,5 +11,5 @@ class WantAction(ReactAction): See: https://schema.org/WantAction Model depth: 5 """ - type_: str = Field(default="WantAction", alias='@type', constant=True) + type_: str = Field(default="WantAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/WarrantyPromise.py b/pydantic_schemaorg/WarrantyPromise.py index 655a56fc..8e4f4dec 100644 --- a/pydantic_schemaorg/WarrantyPromise.py +++ b/pydantic_schemaorg/WarrantyPromise.py @@ -15,7 +15,7 @@ class WarrantyPromise(StructuredValue): See: https://schema.org/WarrantyPromise Model depth: 4 """ - type_: str = Field(default="WarrantyPromise", alias='@type', constant=True) + type_: str = Field(default="WarrantyPromise", alias='@type', const=True) warrantyScope: Optional[Union[List[Union['WarrantyScope', str]], 'WarrantyScope', str]] = Field( default=None, description="The scope of the warranty promise.", diff --git a/pydantic_schemaorg/WarrantyScope.py b/pydantic_schemaorg/WarrantyScope.py index eddf357d..f2740a57 100644 --- a/pydantic_schemaorg/WarrantyScope.py +++ b/pydantic_schemaorg/WarrantyScope.py @@ -13,5 +13,5 @@ class WarrantyScope(Enumeration): See: https://schema.org/WarrantyScope Model depth: 4 """ - type_: str = Field(default="WarrantyScope", alias='@type', constant=True) + type_: str = Field(default="WarrantyScope", alias='@type', const=True) diff --git a/pydantic_schemaorg/WatchAction.py b/pydantic_schemaorg/WatchAction.py index 13854496..4972dcd8 100644 --- a/pydantic_schemaorg/WatchAction.py +++ b/pydantic_schemaorg/WatchAction.py @@ -11,5 +11,5 @@ class WatchAction(ConsumeAction): See: https://schema.org/WatchAction Model depth: 4 """ - type_: str = Field(default="WatchAction", alias='@type', constant=True) + type_: str = Field(default="WatchAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/Waterfall.py b/pydantic_schemaorg/Waterfall.py index 0435a547..80af6111 100644 --- a/pydantic_schemaorg/Waterfall.py +++ b/pydantic_schemaorg/Waterfall.py @@ -11,5 +11,5 @@ class Waterfall(BodyOfWater): See: https://schema.org/Waterfall Model depth: 5 """ - type_: str = Field(default="Waterfall", alias='@type', constant=True) + type_: str = Field(default="Waterfall", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearAction.py b/pydantic_schemaorg/WearAction.py index 4cafef83..c9c1f448 100644 --- a/pydantic_schemaorg/WearAction.py +++ b/pydantic_schemaorg/WearAction.py @@ -11,5 +11,5 @@ class WearAction(UseAction): See: https://schema.org/WearAction Model depth: 5 """ - type_: str = Field(default="WearAction", alias='@type', constant=True) + type_: str = Field(default="WearAction", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableMeasurementBack.py b/pydantic_schemaorg/WearableMeasurementBack.py index 73b2aa75..bdf859b4 100644 --- a/pydantic_schemaorg/WearableMeasurementBack.py +++ b/pydantic_schemaorg/WearableMeasurementBack.py @@ -11,5 +11,5 @@ class WearableMeasurementBack(WearableMeasurementTypeEnumeration): See: https://schema.org/WearableMeasurementBack Model depth: 6 """ - type_: str = Field(default="WearableMeasurementBack", alias='@type', constant=True) + type_: str = Field(default="WearableMeasurementBack", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableMeasurementChestOrBust.py b/pydantic_schemaorg/WearableMeasurementChestOrBust.py index 986f09db..7e72732d 100644 --- a/pydantic_schemaorg/WearableMeasurementChestOrBust.py +++ b/pydantic_schemaorg/WearableMeasurementChestOrBust.py @@ -11,5 +11,5 @@ class WearableMeasurementChestOrBust(WearableMeasurementTypeEnumeration): See: https://schema.org/WearableMeasurementChestOrBust Model depth: 6 """ - type_: str = Field(default="WearableMeasurementChestOrBust", alias='@type', constant=True) + type_: str = Field(default="WearableMeasurementChestOrBust", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableMeasurementCollar.py b/pydantic_schemaorg/WearableMeasurementCollar.py index db6ef9ab..c0a25212 100644 --- a/pydantic_schemaorg/WearableMeasurementCollar.py +++ b/pydantic_schemaorg/WearableMeasurementCollar.py @@ -11,5 +11,5 @@ class WearableMeasurementCollar(WearableMeasurementTypeEnumeration): See: https://schema.org/WearableMeasurementCollar Model depth: 6 """ - type_: str = Field(default="WearableMeasurementCollar", alias='@type', constant=True) + type_: str = Field(default="WearableMeasurementCollar", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableMeasurementCup.py b/pydantic_schemaorg/WearableMeasurementCup.py index 161331e2..bd46afd7 100644 --- a/pydantic_schemaorg/WearableMeasurementCup.py +++ b/pydantic_schemaorg/WearableMeasurementCup.py @@ -11,5 +11,5 @@ class WearableMeasurementCup(WearableMeasurementTypeEnumeration): See: https://schema.org/WearableMeasurementCup Model depth: 6 """ - type_: str = Field(default="WearableMeasurementCup", alias='@type', constant=True) + type_: str = Field(default="WearableMeasurementCup", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableMeasurementHeight.py b/pydantic_schemaorg/WearableMeasurementHeight.py index a40bdbac..4dfefcf3 100644 --- a/pydantic_schemaorg/WearableMeasurementHeight.py +++ b/pydantic_schemaorg/WearableMeasurementHeight.py @@ -11,5 +11,5 @@ class WearableMeasurementHeight(WearableMeasurementTypeEnumeration): See: https://schema.org/WearableMeasurementHeight Model depth: 6 """ - type_: str = Field(default="WearableMeasurementHeight", alias='@type', constant=True) + type_: str = Field(default="WearableMeasurementHeight", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableMeasurementHips.py b/pydantic_schemaorg/WearableMeasurementHips.py index fa6d7ea7..3beb181a 100644 --- a/pydantic_schemaorg/WearableMeasurementHips.py +++ b/pydantic_schemaorg/WearableMeasurementHips.py @@ -11,5 +11,5 @@ class WearableMeasurementHips(WearableMeasurementTypeEnumeration): See: https://schema.org/WearableMeasurementHips Model depth: 6 """ - type_: str = Field(default="WearableMeasurementHips", alias='@type', constant=True) + type_: str = Field(default="WearableMeasurementHips", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableMeasurementInseam.py b/pydantic_schemaorg/WearableMeasurementInseam.py index 524788c3..52b81321 100644 --- a/pydantic_schemaorg/WearableMeasurementInseam.py +++ b/pydantic_schemaorg/WearableMeasurementInseam.py @@ -11,5 +11,5 @@ class WearableMeasurementInseam(WearableMeasurementTypeEnumeration): See: https://schema.org/WearableMeasurementInseam Model depth: 6 """ - type_: str = Field(default="WearableMeasurementInseam", alias='@type', constant=True) + type_: str = Field(default="WearableMeasurementInseam", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableMeasurementLength.py b/pydantic_schemaorg/WearableMeasurementLength.py index f573797a..a291129d 100644 --- a/pydantic_schemaorg/WearableMeasurementLength.py +++ b/pydantic_schemaorg/WearableMeasurementLength.py @@ -11,5 +11,5 @@ class WearableMeasurementLength(WearableMeasurementTypeEnumeration): See: https://schema.org/WearableMeasurementLength Model depth: 6 """ - type_: str = Field(default="WearableMeasurementLength", alias='@type', constant=True) + type_: str = Field(default="WearableMeasurementLength", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableMeasurementOutsideLeg.py b/pydantic_schemaorg/WearableMeasurementOutsideLeg.py index 67287415..572f8e10 100644 --- a/pydantic_schemaorg/WearableMeasurementOutsideLeg.py +++ b/pydantic_schemaorg/WearableMeasurementOutsideLeg.py @@ -11,5 +11,5 @@ class WearableMeasurementOutsideLeg(WearableMeasurementTypeEnumeration): See: https://schema.org/WearableMeasurementOutsideLeg Model depth: 6 """ - type_: str = Field(default="WearableMeasurementOutsideLeg", alias='@type', constant=True) + type_: str = Field(default="WearableMeasurementOutsideLeg", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableMeasurementSleeve.py b/pydantic_schemaorg/WearableMeasurementSleeve.py index 27d41529..dad665ed 100644 --- a/pydantic_schemaorg/WearableMeasurementSleeve.py +++ b/pydantic_schemaorg/WearableMeasurementSleeve.py @@ -11,5 +11,5 @@ class WearableMeasurementSleeve(WearableMeasurementTypeEnumeration): See: https://schema.org/WearableMeasurementSleeve Model depth: 6 """ - type_: str = Field(default="WearableMeasurementSleeve", alias='@type', constant=True) + type_: str = Field(default="WearableMeasurementSleeve", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableMeasurementTypeEnumeration.py b/pydantic_schemaorg/WearableMeasurementTypeEnumeration.py index 104a70b6..cfcb0a16 100644 --- a/pydantic_schemaorg/WearableMeasurementTypeEnumeration.py +++ b/pydantic_schemaorg/WearableMeasurementTypeEnumeration.py @@ -11,5 +11,5 @@ class WearableMeasurementTypeEnumeration(MeasurementTypeEnumeration): See: https://schema.org/WearableMeasurementTypeEnumeration Model depth: 5 """ - type_: str = Field(default="WearableMeasurementTypeEnumeration", alias='@type', constant=True) + type_: str = Field(default="WearableMeasurementTypeEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableMeasurementWaist.py b/pydantic_schemaorg/WearableMeasurementWaist.py index 7a710d72..8890f084 100644 --- a/pydantic_schemaorg/WearableMeasurementWaist.py +++ b/pydantic_schemaorg/WearableMeasurementWaist.py @@ -11,5 +11,5 @@ class WearableMeasurementWaist(WearableMeasurementTypeEnumeration): See: https://schema.org/WearableMeasurementWaist Model depth: 6 """ - type_: str = Field(default="WearableMeasurementWaist", alias='@type', constant=True) + type_: str = Field(default="WearableMeasurementWaist", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableMeasurementWidth.py b/pydantic_schemaorg/WearableMeasurementWidth.py index 2c9d269f..e7ae5ae9 100644 --- a/pydantic_schemaorg/WearableMeasurementWidth.py +++ b/pydantic_schemaorg/WearableMeasurementWidth.py @@ -11,5 +11,5 @@ class WearableMeasurementWidth(WearableMeasurementTypeEnumeration): See: https://schema.org/WearableMeasurementWidth Model depth: 6 """ - type_: str = Field(default="WearableMeasurementWidth", alias='@type', constant=True) + type_: str = Field(default="WearableMeasurementWidth", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupBig.py b/pydantic_schemaorg/WearableSizeGroupBig.py index 4c98976c..ecefc8af 100644 --- a/pydantic_schemaorg/WearableSizeGroupBig.py +++ b/pydantic_schemaorg/WearableSizeGroupBig.py @@ -11,5 +11,5 @@ class WearableSizeGroupBig(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupBig Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupBig", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupBig", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupBoys.py b/pydantic_schemaorg/WearableSizeGroupBoys.py index 2817d14a..40c71913 100644 --- a/pydantic_schemaorg/WearableSizeGroupBoys.py +++ b/pydantic_schemaorg/WearableSizeGroupBoys.py @@ -11,5 +11,5 @@ class WearableSizeGroupBoys(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupBoys Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupBoys", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupBoys", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupEnumeration.py b/pydantic_schemaorg/WearableSizeGroupEnumeration.py index b42f4f20..db031c7e 100644 --- a/pydantic_schemaorg/WearableSizeGroupEnumeration.py +++ b/pydantic_schemaorg/WearableSizeGroupEnumeration.py @@ -11,5 +11,5 @@ class WearableSizeGroupEnumeration(SizeGroupEnumeration): See: https://schema.org/WearableSizeGroupEnumeration Model depth: 5 """ - type_: str = Field(default="WearableSizeGroupEnumeration", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupExtraShort.py b/pydantic_schemaorg/WearableSizeGroupExtraShort.py index ac38aed4..206e1371 100644 --- a/pydantic_schemaorg/WearableSizeGroupExtraShort.py +++ b/pydantic_schemaorg/WearableSizeGroupExtraShort.py @@ -11,5 +11,5 @@ class WearableSizeGroupExtraShort(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupExtraShort Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupExtraShort", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupExtraShort", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupExtraTall.py b/pydantic_schemaorg/WearableSizeGroupExtraTall.py index f72c20b9..50b4547c 100644 --- a/pydantic_schemaorg/WearableSizeGroupExtraTall.py +++ b/pydantic_schemaorg/WearableSizeGroupExtraTall.py @@ -11,5 +11,5 @@ class WearableSizeGroupExtraTall(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupExtraTall Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupExtraTall", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupExtraTall", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupGirls.py b/pydantic_schemaorg/WearableSizeGroupGirls.py index 06e46e07..b5f95483 100644 --- a/pydantic_schemaorg/WearableSizeGroupGirls.py +++ b/pydantic_schemaorg/WearableSizeGroupGirls.py @@ -11,5 +11,5 @@ class WearableSizeGroupGirls(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupGirls Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupGirls", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupGirls", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupHusky.py b/pydantic_schemaorg/WearableSizeGroupHusky.py index 8bb7ea19..0c77122e 100644 --- a/pydantic_schemaorg/WearableSizeGroupHusky.py +++ b/pydantic_schemaorg/WearableSizeGroupHusky.py @@ -11,5 +11,5 @@ class WearableSizeGroupHusky(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupHusky Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupHusky", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupHusky", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupInfants.py b/pydantic_schemaorg/WearableSizeGroupInfants.py index 33f42ed6..18478c43 100644 --- a/pydantic_schemaorg/WearableSizeGroupInfants.py +++ b/pydantic_schemaorg/WearableSizeGroupInfants.py @@ -11,5 +11,5 @@ class WearableSizeGroupInfants(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupInfants Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupInfants", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupInfants", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupJuniors.py b/pydantic_schemaorg/WearableSizeGroupJuniors.py index c33bc9f0..7345cdf7 100644 --- a/pydantic_schemaorg/WearableSizeGroupJuniors.py +++ b/pydantic_schemaorg/WearableSizeGroupJuniors.py @@ -11,5 +11,5 @@ class WearableSizeGroupJuniors(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupJuniors Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupJuniors", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupJuniors", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupMaternity.py b/pydantic_schemaorg/WearableSizeGroupMaternity.py index 8009e4e3..1cc4d4b6 100644 --- a/pydantic_schemaorg/WearableSizeGroupMaternity.py +++ b/pydantic_schemaorg/WearableSizeGroupMaternity.py @@ -11,5 +11,5 @@ class WearableSizeGroupMaternity(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupMaternity Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupMaternity", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupMaternity", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupMens.py b/pydantic_schemaorg/WearableSizeGroupMens.py index 420a5e5a..1b4fcd4e 100644 --- a/pydantic_schemaorg/WearableSizeGroupMens.py +++ b/pydantic_schemaorg/WearableSizeGroupMens.py @@ -11,5 +11,5 @@ class WearableSizeGroupMens(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupMens Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupMens", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupMens", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupMisses.py b/pydantic_schemaorg/WearableSizeGroupMisses.py index c1bb4b5f..70484b44 100644 --- a/pydantic_schemaorg/WearableSizeGroupMisses.py +++ b/pydantic_schemaorg/WearableSizeGroupMisses.py @@ -11,5 +11,5 @@ class WearableSizeGroupMisses(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupMisses Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupMisses", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupMisses", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupPetite.py b/pydantic_schemaorg/WearableSizeGroupPetite.py index 7bf94300..43013b32 100644 --- a/pydantic_schemaorg/WearableSizeGroupPetite.py +++ b/pydantic_schemaorg/WearableSizeGroupPetite.py @@ -11,5 +11,5 @@ class WearableSizeGroupPetite(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupPetite Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupPetite", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupPetite", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupPlus.py b/pydantic_schemaorg/WearableSizeGroupPlus.py index 86ee75f5..92b315fd 100644 --- a/pydantic_schemaorg/WearableSizeGroupPlus.py +++ b/pydantic_schemaorg/WearableSizeGroupPlus.py @@ -11,5 +11,5 @@ class WearableSizeGroupPlus(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupPlus Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupPlus", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupPlus", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupRegular.py b/pydantic_schemaorg/WearableSizeGroupRegular.py index 697ce3bc..b00e3444 100644 --- a/pydantic_schemaorg/WearableSizeGroupRegular.py +++ b/pydantic_schemaorg/WearableSizeGroupRegular.py @@ -11,5 +11,5 @@ class WearableSizeGroupRegular(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupRegular Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupRegular", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupRegular", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupShort.py b/pydantic_schemaorg/WearableSizeGroupShort.py index e0a6a262..259fb1af 100644 --- a/pydantic_schemaorg/WearableSizeGroupShort.py +++ b/pydantic_schemaorg/WearableSizeGroupShort.py @@ -11,5 +11,5 @@ class WearableSizeGroupShort(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupShort Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupShort", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupShort", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupTall.py b/pydantic_schemaorg/WearableSizeGroupTall.py index 5eb40990..40bed44b 100644 --- a/pydantic_schemaorg/WearableSizeGroupTall.py +++ b/pydantic_schemaorg/WearableSizeGroupTall.py @@ -11,5 +11,5 @@ class WearableSizeGroupTall(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupTall Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupTall", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupTall", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeGroupWomens.py b/pydantic_schemaorg/WearableSizeGroupWomens.py index a606ed2d..44d61339 100644 --- a/pydantic_schemaorg/WearableSizeGroupWomens.py +++ b/pydantic_schemaorg/WearableSizeGroupWomens.py @@ -11,5 +11,5 @@ class WearableSizeGroupWomens(WearableSizeGroupEnumeration): See: https://schema.org/WearableSizeGroupWomens Model depth: 6 """ - type_: str = Field(default="WearableSizeGroupWomens", alias='@type', constant=True) + type_: str = Field(default="WearableSizeGroupWomens", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemAU.py b/pydantic_schemaorg/WearableSizeSystemAU.py index 7f799ccf..19d3ebc9 100644 --- a/pydantic_schemaorg/WearableSizeSystemAU.py +++ b/pydantic_schemaorg/WearableSizeSystemAU.py @@ -11,5 +11,5 @@ class WearableSizeSystemAU(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemAU Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemAU", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemAU", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemBR.py b/pydantic_schemaorg/WearableSizeSystemBR.py index 5d1a8156..d64893f5 100644 --- a/pydantic_schemaorg/WearableSizeSystemBR.py +++ b/pydantic_schemaorg/WearableSizeSystemBR.py @@ -11,5 +11,5 @@ class WearableSizeSystemBR(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemBR Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemBR", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemBR", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemCN.py b/pydantic_schemaorg/WearableSizeSystemCN.py index 783f9888..8d47ed5d 100644 --- a/pydantic_schemaorg/WearableSizeSystemCN.py +++ b/pydantic_schemaorg/WearableSizeSystemCN.py @@ -11,5 +11,5 @@ class WearableSizeSystemCN(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemCN Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemCN", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemCN", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemContinental.py b/pydantic_schemaorg/WearableSizeSystemContinental.py index a8d6af8d..be1663e6 100644 --- a/pydantic_schemaorg/WearableSizeSystemContinental.py +++ b/pydantic_schemaorg/WearableSizeSystemContinental.py @@ -11,5 +11,5 @@ class WearableSizeSystemContinental(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemContinental Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemContinental", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemContinental", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemDE.py b/pydantic_schemaorg/WearableSizeSystemDE.py index faa89dc8..3d8e7962 100644 --- a/pydantic_schemaorg/WearableSizeSystemDE.py +++ b/pydantic_schemaorg/WearableSizeSystemDE.py @@ -11,5 +11,5 @@ class WearableSizeSystemDE(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemDE Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemDE", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemDE", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemEN13402.py b/pydantic_schemaorg/WearableSizeSystemEN13402.py index 45017b9a..f9c8b886 100644 --- a/pydantic_schemaorg/WearableSizeSystemEN13402.py +++ b/pydantic_schemaorg/WearableSizeSystemEN13402.py @@ -11,5 +11,5 @@ class WearableSizeSystemEN13402(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemEN13402 Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemEN13402", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemEN13402", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemEnumeration.py b/pydantic_schemaorg/WearableSizeSystemEnumeration.py index 75c5f0b3..d043b0ba 100644 --- a/pydantic_schemaorg/WearableSizeSystemEnumeration.py +++ b/pydantic_schemaorg/WearableSizeSystemEnumeration.py @@ -11,5 +11,5 @@ class WearableSizeSystemEnumeration(SizeSystemEnumeration): See: https://schema.org/WearableSizeSystemEnumeration Model depth: 5 """ - type_: str = Field(default="WearableSizeSystemEnumeration", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemEnumeration", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemEurope.py b/pydantic_schemaorg/WearableSizeSystemEurope.py index 8e5ab0ed..21fe6cc3 100644 --- a/pydantic_schemaorg/WearableSizeSystemEurope.py +++ b/pydantic_schemaorg/WearableSizeSystemEurope.py @@ -11,5 +11,5 @@ class WearableSizeSystemEurope(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemEurope Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemEurope", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemEurope", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemFR.py b/pydantic_schemaorg/WearableSizeSystemFR.py index 2d347266..8b42ffb8 100644 --- a/pydantic_schemaorg/WearableSizeSystemFR.py +++ b/pydantic_schemaorg/WearableSizeSystemFR.py @@ -11,5 +11,5 @@ class WearableSizeSystemFR(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemFR Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemFR", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemFR", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemGS1.py b/pydantic_schemaorg/WearableSizeSystemGS1.py index f8f0db8f..dce3c27a 100644 --- a/pydantic_schemaorg/WearableSizeSystemGS1.py +++ b/pydantic_schemaorg/WearableSizeSystemGS1.py @@ -11,5 +11,5 @@ class WearableSizeSystemGS1(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemGS1 Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemGS1", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemGS1", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemIT.py b/pydantic_schemaorg/WearableSizeSystemIT.py index 605ab720..4b5025a0 100644 --- a/pydantic_schemaorg/WearableSizeSystemIT.py +++ b/pydantic_schemaorg/WearableSizeSystemIT.py @@ -11,5 +11,5 @@ class WearableSizeSystemIT(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemIT Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemIT", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemIT", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemJP.py b/pydantic_schemaorg/WearableSizeSystemJP.py index b3316e8c..73d06fd3 100644 --- a/pydantic_schemaorg/WearableSizeSystemJP.py +++ b/pydantic_schemaorg/WearableSizeSystemJP.py @@ -11,5 +11,5 @@ class WearableSizeSystemJP(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemJP Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemJP", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemJP", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemMX.py b/pydantic_schemaorg/WearableSizeSystemMX.py index 8914a255..749a06ba 100644 --- a/pydantic_schemaorg/WearableSizeSystemMX.py +++ b/pydantic_schemaorg/WearableSizeSystemMX.py @@ -11,5 +11,5 @@ class WearableSizeSystemMX(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemMX Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemMX", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemMX", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemUK.py b/pydantic_schemaorg/WearableSizeSystemUK.py index 097d848b..2a879458 100644 --- a/pydantic_schemaorg/WearableSizeSystemUK.py +++ b/pydantic_schemaorg/WearableSizeSystemUK.py @@ -11,5 +11,5 @@ class WearableSizeSystemUK(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemUK Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemUK", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemUK", alias='@type', const=True) diff --git a/pydantic_schemaorg/WearableSizeSystemUS.py b/pydantic_schemaorg/WearableSizeSystemUS.py index dd1c1564..f9f0ebb9 100644 --- a/pydantic_schemaorg/WearableSizeSystemUS.py +++ b/pydantic_schemaorg/WearableSizeSystemUS.py @@ -11,5 +11,5 @@ class WearableSizeSystemUS(WearableSizeSystemEnumeration): See: https://schema.org/WearableSizeSystemUS Model depth: 6 """ - type_: str = Field(default="WearableSizeSystemUS", alias='@type', constant=True) + type_: str = Field(default="WearableSizeSystemUS", alias='@type', const=True) diff --git a/pydantic_schemaorg/WebAPI.py b/pydantic_schemaorg/WebAPI.py index 7de479aa..607d1271 100644 --- a/pydantic_schemaorg/WebAPI.py +++ b/pydantic_schemaorg/WebAPI.py @@ -15,7 +15,7 @@ class WebAPI(Service): See: https://schema.org/WebAPI Model depth: 4 """ - type_: str = Field(default="WebAPI", alias='@type', constant=True) + type_: str = Field(default="WebAPI", alias='@type', const=True) documentation: Optional[Union[List[Union[AnyUrl, 'URL', 'CreativeWork', str]], AnyUrl, 'URL', 'CreativeWork', str]] = Field( default=None, description="Further documentation describing the Web API in more detail.", diff --git a/pydantic_schemaorg/WebApplication.py b/pydantic_schemaorg/WebApplication.py index a70ab8e9..de9dd99d 100644 --- a/pydantic_schemaorg/WebApplication.py +++ b/pydantic_schemaorg/WebApplication.py @@ -14,7 +14,7 @@ class WebApplication(SoftwareApplication): See: https://schema.org/WebApplication Model depth: 4 """ - type_: str = Field(default="WebApplication", alias='@type', constant=True) + type_: str = Field(default="WebApplication", alias='@type', const=True) browserRequirements: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="Specifies browser requirements in human-readable text. For example, 'requires HTML5" diff --git a/pydantic_schemaorg/WebContent.py b/pydantic_schemaorg/WebContent.py index f8a34e77..626675eb 100644 --- a/pydantic_schemaorg/WebContent.py +++ b/pydantic_schemaorg/WebContent.py @@ -16,5 +16,5 @@ class WebContent(CreativeWork): See: https://schema.org/WebContent Model depth: 3 """ - type_: str = Field(default="WebContent", alias='@type', constant=True) + type_: str = Field(default="WebContent", alias='@type', const=True) diff --git a/pydantic_schemaorg/WebPage.py b/pydantic_schemaorg/WebPage.py index 336c874f..67e352c4 100644 --- a/pydantic_schemaorg/WebPage.py +++ b/pydantic_schemaorg/WebPage.py @@ -19,7 +19,7 @@ class WebPage(CreativeWork): See: https://schema.org/WebPage Model depth: 3 """ - type_: str = Field(default="WebPage", alias='@type', constant=True) + type_: str = Field(default="WebPage", alias='@type', const=True) significantLink: Optional[Union[List[Union[AnyUrl, 'URL', str]], AnyUrl, 'URL', str]] = Field( default=None, description="One of the more significant URLs on the page. Typically, these are the non-navigation" @@ -51,7 +51,7 @@ class WebPage(CreativeWork): default=None, description="A link related to this web page, for example to other related web pages.", ) - reviewedBy: Optional[Union[List[Union['Organization', 'Person', str]], 'Organization', 'Person', str]] = Field( + reviewedBy: Optional[Union[List[Union['Person', 'Organization', str]], 'Person', 'Organization', str]] = Field( default=None, description="People or organizations that have reviewed the content on this web page for accuracy" "and/or completeness.", @@ -81,8 +81,8 @@ class WebPage(CreativeWork): if TYPE_CHECKING: from pydantic_schemaorg.URL import URL from pydantic_schemaorg.SpeakableSpecification import SpeakableSpecification - from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Person import Person + from pydantic_schemaorg.Organization import Organization from pydantic_schemaorg.Text import Text from pydantic_schemaorg.BreadcrumbList import BreadcrumbList from pydantic_schemaorg.ImageObject import ImageObject diff --git a/pydantic_schemaorg/WebPageElement.py b/pydantic_schemaorg/WebPageElement.py index bf332102..5ec2577f 100644 --- a/pydantic_schemaorg/WebPageElement.py +++ b/pydantic_schemaorg/WebPageElement.py @@ -14,7 +14,7 @@ class WebPageElement(CreativeWork): See: https://schema.org/WebPageElement Model depth: 3 """ - type_: str = Field(default="WebPageElement", alias='@type', constant=True) + type_: str = Field(default="WebPageElement", alias='@type', const=True) xpath: Optional[Union[List[Union[str, 'XPathType']], str, 'XPathType']] = Field( default=None, description="An XPath, e.g. of a [[SpeakableSpecification]] or [[WebPageElement]]. In the latter" diff --git a/pydantic_schemaorg/WebSite.py b/pydantic_schemaorg/WebSite.py index e7d2d396..01ac5f6c 100644 --- a/pydantic_schemaorg/WebSite.py +++ b/pydantic_schemaorg/WebSite.py @@ -15,7 +15,7 @@ class WebSite(CreativeWork): See: https://schema.org/WebSite Model depth: 3 """ - type_: str = Field(default="WebSite", alias='@type', constant=True) + type_: str = Field(default="WebSite", alias='@type', const=True) issn: Optional[Union[List[Union[str, 'Text']], str, 'Text']] = Field( default=None, description="The International Standard Serial Number (ISSN) that identifies this serial publication." diff --git a/pydantic_schemaorg/Wednesday.py b/pydantic_schemaorg/Wednesday.py index 3e36a835..79263e58 100644 --- a/pydantic_schemaorg/Wednesday.py +++ b/pydantic_schemaorg/Wednesday.py @@ -11,5 +11,5 @@ class Wednesday(DayOfWeek): See: https://schema.org/Wednesday Model depth: 5 """ - type_: str = Field(default="Wednesday", alias='@type', constant=True) + type_: str = Field(default="Wednesday", alias='@type', const=True) diff --git a/pydantic_schemaorg/WesternConventional.py b/pydantic_schemaorg/WesternConventional.py index aeed9787..ace9e3ae 100644 --- a/pydantic_schemaorg/WesternConventional.py +++ b/pydantic_schemaorg/WesternConventional.py @@ -13,5 +13,5 @@ class WesternConventional(MedicineSystem): See: https://schema.org/WesternConventional Model depth: 6 """ - type_: str = Field(default="WesternConventional", alias='@type', constant=True) + type_: str = Field(default="WesternConventional", alias='@type', const=True) diff --git a/pydantic_schemaorg/Wholesale.py b/pydantic_schemaorg/Wholesale.py index 503d12eb..74298450 100644 --- a/pydantic_schemaorg/Wholesale.py +++ b/pydantic_schemaorg/Wholesale.py @@ -11,5 +11,5 @@ class Wholesale(DrugCostCategory): See: https://schema.org/Wholesale Model depth: 6 """ - type_: str = Field(default="Wholesale", alias='@type', constant=True) + type_: str = Field(default="Wholesale", alias='@type', const=True) diff --git a/pydantic_schemaorg/WholesaleStore.py b/pydantic_schemaorg/WholesaleStore.py index 88e68fe6..0072f52a 100644 --- a/pydantic_schemaorg/WholesaleStore.py +++ b/pydantic_schemaorg/WholesaleStore.py @@ -11,5 +11,5 @@ class WholesaleStore(Store): See: https://schema.org/WholesaleStore Model depth: 5 """ - type_: str = Field(default="WholesaleStore", alias='@type', constant=True) + type_: str = Field(default="WholesaleStore", alias='@type', const=True) diff --git a/pydantic_schemaorg/WinAction.py b/pydantic_schemaorg/WinAction.py index b5d51150..784b1359 100644 --- a/pydantic_schemaorg/WinAction.py +++ b/pydantic_schemaorg/WinAction.py @@ -14,7 +14,7 @@ class WinAction(AchieveAction): See: https://schema.org/WinAction Model depth: 4 """ - type_: str = Field(default="WinAction", alias='@type', constant=True) + type_: str = Field(default="WinAction", alias='@type', const=True) loser: Optional[Union[List[Union['Person', str]], 'Person', str]] = Field( default=None, description="A sub property of participant. The loser of the action.", diff --git a/pydantic_schemaorg/Winery.py b/pydantic_schemaorg/Winery.py index cc266a75..f4cfc2cd 100644 --- a/pydantic_schemaorg/Winery.py +++ b/pydantic_schemaorg/Winery.py @@ -11,5 +11,5 @@ class Winery(FoodEstablishment): See: https://schema.org/Winery Model depth: 5 """ - type_: str = Field(default="Winery", alias='@type', constant=True) + type_: str = Field(default="Winery", alias='@type', const=True) diff --git a/pydantic_schemaorg/Withdrawn.py b/pydantic_schemaorg/Withdrawn.py index 94526f76..8b990217 100644 --- a/pydantic_schemaorg/Withdrawn.py +++ b/pydantic_schemaorg/Withdrawn.py @@ -11,5 +11,5 @@ class Withdrawn(MedicalStudyStatus): See: https://schema.org/Withdrawn Model depth: 6 """ - type_: str = Field(default="Withdrawn", alias='@type', constant=True) + type_: str = Field(default="Withdrawn", alias='@type', const=True) diff --git a/pydantic_schemaorg/WorkBasedProgram.py b/pydantic_schemaorg/WorkBasedProgram.py index 54f48622..7e243373 100644 --- a/pydantic_schemaorg/WorkBasedProgram.py +++ b/pydantic_schemaorg/WorkBasedProgram.py @@ -17,7 +17,7 @@ class WorkBasedProgram(EducationalOccupationalProgram): See: https://schema.org/WorkBasedProgram Model depth: 4 """ - type_: str = Field(default="WorkBasedProgram", alias='@type', constant=True) + type_: str = Field(default="WorkBasedProgram", alias='@type', const=True) trainingSalary: Optional[Union[List[Union['MonetaryAmountDistribution', str]], 'MonetaryAmountDistribution', str]] = Field( default=None, description="The estimated salary earned while in the program.", diff --git a/pydantic_schemaorg/WorkersUnion.py b/pydantic_schemaorg/WorkersUnion.py index 7c41bdb3..933037cb 100644 --- a/pydantic_schemaorg/WorkersUnion.py +++ b/pydantic_schemaorg/WorkersUnion.py @@ -13,5 +13,5 @@ class WorkersUnion(Organization): See: https://schema.org/WorkersUnion Model depth: 3 """ - type_: str = Field(default="WorkersUnion", alias='@type', constant=True) + type_: str = Field(default="WorkersUnion", alias='@type', const=True) diff --git a/pydantic_schemaorg/WriteAction.py b/pydantic_schemaorg/WriteAction.py index 39281e4f..d9c628b6 100644 --- a/pydantic_schemaorg/WriteAction.py +++ b/pydantic_schemaorg/WriteAction.py @@ -14,7 +14,7 @@ class WriteAction(CreateAction): See: https://schema.org/WriteAction Model depth: 4 """ - type_: str = Field(default="WriteAction", alias='@type', constant=True) + type_: str = Field(default="WriteAction", alias='@type', const=True) language: Optional[Union[List[Union['Language', str]], 'Language', str]] = Field( default=None, description="A sub property of instrument. The language used on this action.", diff --git a/pydantic_schemaorg/WritePermission.py b/pydantic_schemaorg/WritePermission.py index 0f8dfe27..2f5fc665 100644 --- a/pydantic_schemaorg/WritePermission.py +++ b/pydantic_schemaorg/WritePermission.py @@ -11,5 +11,5 @@ class WritePermission(DigitalDocumentPermissionType): See: https://schema.org/WritePermission Model depth: 5 """ - type_: str = Field(default="WritePermission", alias='@type', constant=True) + type_: str = Field(default="WritePermission", alias='@type', const=True) diff --git a/pydantic_schemaorg/XPathType.py b/pydantic_schemaorg/XPathType.py index 438215d5..cc77f6e5 100644 --- a/pydantic_schemaorg/XPathType.py +++ b/pydantic_schemaorg/XPathType.py @@ -11,5 +11,5 @@ class XPathType(Text): See: https://schema.org/XPathType Model depth: 6 """ - type_: str = Field(default="XPathType", alias='@type', constant=True) + type_: str = Field(default="XPathType", alias='@type', const=True) diff --git a/pydantic_schemaorg/XRay.py b/pydantic_schemaorg/XRay.py index 57243991..a683fa4f 100644 --- a/pydantic_schemaorg/XRay.py +++ b/pydantic_schemaorg/XRay.py @@ -11,5 +11,5 @@ class XRay(MedicalImagingTechnique): See: https://schema.org/XRay Model depth: 6 """ - type_: str = Field(default="XRay", alias='@type', constant=True) + type_: str = Field(default="XRay", alias='@type', const=True) diff --git a/pydantic_schemaorg/ZoneBoardingPolicy.py b/pydantic_schemaorg/ZoneBoardingPolicy.py index d1fc005b..37a18609 100644 --- a/pydantic_schemaorg/ZoneBoardingPolicy.py +++ b/pydantic_schemaorg/ZoneBoardingPolicy.py @@ -11,5 +11,5 @@ class ZoneBoardingPolicy(BoardingPolicyType): See: https://schema.org/ZoneBoardingPolicy Model depth: 5 """ - type_: str = Field(default="ZoneBoardingPolicy", alias='@type', constant=True) + type_: str = Field(default="ZoneBoardingPolicy", alias='@type', const=True) diff --git a/pydantic_schemaorg/Zoo.py b/pydantic_schemaorg/Zoo.py index 1846d550..d8467095 100644 --- a/pydantic_schemaorg/Zoo.py +++ b/pydantic_schemaorg/Zoo.py @@ -11,5 +11,5 @@ class Zoo(CivicStructure): See: https://schema.org/Zoo Model depth: 4 """ - type_: str = Field(default="Zoo", alias='@type', constant=True) + type_: str = Field(default="Zoo", alias='@type', const=True) diff --git a/pydantic_schemaorg/_3DModel.py b/pydantic_schemaorg/_3DModel.py index 2ba236bc..097c65e7 100644 --- a/pydantic_schemaorg/_3DModel.py +++ b/pydantic_schemaorg/_3DModel.py @@ -21,7 +21,7 @@ class _3DModel(MediaObject): See: https://schema.org/3DModel Model depth: 4 """ - type_: str = Field(default="3DModel", alias='@type', constant=True) + type_: str = Field(default="3DModel", alias='@type', const=True) isResizable: Optional[Union[List[Union[StrictBool, 'Boolean', str]], StrictBool, 'Boolean', str]] = Field( default=None, description="Whether the 3DModel allows resizing. For example, room layout applications often do"