struct Swagger::Object
- Swagger::Object
- Struct
- Value
- Object
Overview
Object is define a schema struct
This is no relationship with
Objects
structs.
Swagger::Object.new("User", "object", [
Swagger::Property.new("id", "integer", "int32", example: 1),
Swagger::Property.new("nickname", example: "icyleaf wang"),
Swagger::Property.new("username", example: "icyleaf"),
Swagger::Property.new("email", example: "[email protected]"),
Swagger::Property.new("bio", "Personal bio"),
])
Defined in:
swagger/object.crConstructors
Instance Method Summary
- #name : String
- #name=(name : String)
- #properties : Array(Swagger::Property)
- #properties=(properties : Array(Swagger::Property))
- #type : String
- #type=(type : String)