PropertySchema2.1.2
- Known subtypes:
- Known usages:
- All versions:
Properties(show inherited)
-
expand_morelinkhidden
The output of this module.
Defaults to all module properties rendered as either Pcf or the format specified on the command line.
-
expand_morelinkSchema.type: ("string"|"number"|"integer"|"boolean"|"object"|"array")? (org.openapis.v3.Schema)Source
The basic type of the value represented by this schema.
If this property is not defined, the value may be of any type.
-
expand_morelinkSchema.format: ("int32"|"int64"|"float"|"double"|"byte"|"binary"|"date"|"date-time"|"password"|String)? (org.openapis.v3.Schema)Source
An additional descriptor for the value represented by this schema.
OAS uses several known formats to define in fine detail the data type being used.
However, to support documentation needs, the
format
property is an openstring
-valued property, and can have any value. Formats such as"email"
,"uuid"
, and so on, may be used even though undefined by this specification. Types that are not accompanied by aformat
property follow the type definition in the JSON Schema. Tools that do not recognize a specificformat
may default to thetype
alone, as if theformat
is not specified.The formats defined by the OAS are:
Common Name type
format
Comments integer integer
int32
signed 32 bits long integer
int64
signed 64 bits float number
float
double number
double
string string
byte string
byte
base64 encoded characters binary string
binary
any sequence of octets boolean boolean
date string
date
As defined by full-date
- RFC3339dateTime string
date-time
As defined by date-time
- RFC3339password string
password
A hint to UIs to obscure input. https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#dataTypeFormat
-
-
-
expand_morelink
Specifies a default value.
This value is not used to fill in missing values during the validation process. Non-validation tools such as documentation generators or form generators may use this value to give hints to users about how to use a value. However,
default
is typically used to express that if a value is missing, then the value is semantically the same as if the value was present with the default value. The value ofdefault
should validate against the schema in which it resides, but that isn't required.https://json-schema.org/understanding-json-schema/reference/generic.html#annotations
-
expand_morelink
Restricts the value specified by this schema to a fixed set of values.
It must be an array with at least one element, where each element is unique.
You can use enum even without a type, to accept values of different types.
Elements in the array might be of any type, including
null
. https://json-schema.org/understanding-json-schema/reference/generic.html#enumerated-values -
expand_morelinkSchema.multipleOf: Number(type is ("number"|"integer") && isPositive)? (org.openapis.v3.Schema)Source
Restricts to a number that is a multiple of this value.
It may be set to any positive number.
https://json-schema.org/understanding-json-schema/reference/numeric.html#multiples
-
-
-
-
-
expand_morelink
Represent a string that adheres to a regex pattern.
The regular expression must conform to ECMA 262.
https://json-schema.org/understanding-json-schema/reference/string.html#regular-expressions
-
-
-
-
-
-
-
-
-
expand_morelinkSchema.properties: Mapping<String, (PropertySchema|Reference)>(type == "object")? (org.openapis.v3.Schema)Source
Represent an object that have properties that conform to a certain schema.
-
expand_morelinkSchema.additionalProperties: (PropertySchema|Boolean|Reference)(type == "object")? (org.openapis.v3.Schema)Source
Represent an object that has additional properties.
The value of
additionalProperties
is a schema that will be used to validate any properties in the instance that are not matched byproperties
. Setting theadditionalProperties
schema tofalse
means no additional properties will be allowed.https://json-schema.org/understanding-json-schema/reference/object.html#additional-properties
-
expand_morelink
Represent an object that has certain properties defined on it.
By default, no properties are required.
https://json-schema.org/understanding-json-schema/reference/object.html#required-properties
-
-
-
-
-
expand_morelink
Represent that the value may optionally be
null
.Default value is
false
.https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#fixed-fields-20
-
expand_morelink
Helps inform of alternative schemas.
When request bodies or response payloads may be one of a number of different schemas, a discriminator object can be used to aid in serialization, deserialization, and validation. The discriminator is a specific object in a schema which is used to inform the consumer of the specification of an alternative schema based on the value associated with it.
When using the discriminator, inline schemas will not be considered.
https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#discriminator-object
-
expand_morelink
Declares the property as "read only".
Relevant only for Schema
properties
definitions. This means that it may be sent as part of a response but should not be sent as part of the request. If the property is marked asreadOnly
and is in therequired
list,required
only effects the response. A property may not be marked as bothreadOnly
andwriteOnly
.Default value is
false
.https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#fixed-fields-20
-
expand_morelink
Declares the property as "write only".
This is relevant only for Schema
properties
definitions. Therefore, it it may be sent as part of a response but should not be sent as part If the property is marked aswriteOnly
beingtrue
and is in therequired
list, therequired
will take effect on the request only. A property may not be marked as bothreadOnly
andwriteOnly
beingtrue
.Default value is
false
.https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#fixed-fields-20
-
-
expand_morelink
Indicates that this property is deprecated.
Default value is
false
.https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#fixed-fields-20
-
expand_morelink
A free-form property to include an example of an instance for this schema.
To represent examples that cannot be naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.
-
-
Methods(show inherited)
-
-
-
-
-
-
-
-
-
expand_morelinkfunction
Returns the relative, descendent directory path between this module and
other
.Throws if no such path exists.
For example, if module
mod1
has path/dir1/mod1.pkl
, and modulemod2
has path/dir1/dir2/dir3/mod2.pkl
, thenmod1.relativePathTo(mod2)
will returnList("dir2", "dir3")
.A common use case is to compute the directory path between a template located at the root of a hierarchy (say
rootModule.pkl
) and the currently evaluated module (accessible via themodule
keyword):import "rootModule.pkl" // self-import path = rootModule.relativePathTo(module)
Property schemas are
Schema
s that optionally include XML metadata.