gilly/common
Types
Controls how the codegen decides whether a field should be Option(T).
pub type Optionality {
RequiredOnly
NullableOnly
RequiredAndNullable
}
Constructors
-
RequiredOnlyOnly fields listed in the
requiredarray are non-optional. This is the strict OpenAPI interpretation. -
NullableOnlyFields are required unless marked
nullable: true. Useful for specs (like Scaleway) that don’t userequiredarrays. -
RequiredAndNullableA field is optional if it’s not in
requiredOR isnullable: true. This combines both signals.
Values
pub const header_comment: String
Template for the header comment in generated code files. Matches the Go’s generated files conventions so that git identifies this as a generated file and ignores it in diffs by default.
pub const supported_file_types: List(String)
Supported file types for input OpenAPI specifications.