This is a global notification. You can write markdown here! Link to official website
Enums, Constants & Unions
Enums
EnumTest
Example enumeration for the SetOfEnumTestTypes type.
EnumEntryOneEnumEntryTwoEnumEntryThree
EnumPropertiesType
Test data for properties with enums that are of differing primitive types
intWithEnumExampleInt | An int with enum values Can be1, 2, or 3 |
floatWithEnumExampleFloat | A float with enum values Can be1.0, 2.0, or 3.0Default: 1.0 |
enumOfStringExampleString | A string with enum values (undescribed) Can be"dog", "cat", or "elephant"Default: dog |
EnumWithDescriptionExample
Enum with agreed upon description annotation.
enumValue1description 1
enumValue2description 2
enumWithoutDescriptionenumWithMarkdownDescriptioninline-codeshould be formatted as an inline code. ObjectTestType should link to the header of the definition ofObjectTestTypeon this website -api-docs-smoke-test. Links should link to the header for the definition ofLinksondocs-smoke-testmicrosite.
EnumGroupsTest
EnumGroup1
Example enumeration for the SetOfEnumTestTypes type.
enumValue1description of enumValue1
enumValue2description of enumValue2.
inline-codeshould be formatted as an inline code.enumValue3description of enumValue3
enumValue4description of enumValue4
enumValue5description of enumValue5
enumValue6description of enumValue6
enumValue7description of enumValue7
EnumGroup2
Example enumeration for the SetOfEnumTestTypes type.
enumValue8description of enumValue8
enumValue9description of enumValue9.
inline-codeshould be formatted as an inline code.enumValue10description of enumValue10
enumValue11description of enumValue11
enumValue12description of enumValue12
enumValue13description of enumValue13
enumValue14description of enumValue14
Constants
ConstantLikeType
render an enum with one value as a constant.
constantExampleValue
ConstantLikeProperties
Has properties that are constant-like, that is, enums with only one value.
stringConstantLikeString | "constantStringValue"a string contant-like property |
intConstantLikeInt | 256an integer contant-like property |
floatConstantLikeFloat | 3.14a float contant-like property |
Unions
UnionLikeType
A pattern of inheritance that is to be represented like a union, i.e. this parent type would not be shown with a property list on its own.
kindString | |
nonDiscriminatorPropertyString |
UnionLikeSubType1
This specific instance of the union is rendered like a regular type with a property table
kindString | "subtype1" |
nonDiscriminatorPropertyString | |
fooString | |
nameString |
UnionLikeWithEnumDescriptionPropertiesInSubtype
This pattern has sub-types whose properties are enumerations with descriptions.
Enum with agreed upon description annotation. |
UnionLikeSubTypeWithEnumDescriptionProperties1
The discriminatorValue (value1) of this union like sub stype is defined in EnumWithDescriptionExample
typeString | "enumValue1"description 1 |
fooString | |
nameString |
UnionLikeSubTypeWithEnumDescriptionProperties2
The discriminatorValue (value2) of this union like sub stype is defined in EnumWithDescriptionExample
typeString | "enumValue2"description 2 |
barString | |
nameString |
UnionLikeSubTypeWithEnumDescriptionProperties3
The discriminatorValue (value2) of this union like sub stype is defined in EnumWithDescriptionExample but without a description.
typeString | "enumWithoutDescription"Enum with agreed upon description annotation. |
bazString | |
nameString |