Platform Types¶
The types defined in craft_platforms.platform_types can be used with Pydantic
as field types.
This module must be imported separately so that Craft Platforms does not require pydantic.
- craft_platforms.platform_types.StrictPlatformName¶
The name of a platform.
StrictPlatformNamecan be used to specify only user-entered platform names. This is the strictest type of platform name and only useful if the app doesn’t add any platforms of its own.
- craft_platforms.platform_types.StrictAppPlatformName¶
The name of a platform, possibly app-provided.
StrictAppPlatformNamecan be used to specify either user-entered or application-provided platforms. Application-provided platforms should be prefixed with the string<app_name>/