annotation OpenAPI::Field

Overview

Mark a field with special properties during serialization.

@[OpenAPI::Field(ignore: true)] # Ignore the field
property ignored_field

@[OpenAPI::Field(type: String)] # Enforce a type
property str_field : Int32

Defined in:

openapi-generator/serializable.cr