MetadataShape
Shape builder for operation metadata.
Provides #options for accessing capability configuration, plus all DSL methods from API::Object for defining structure. Used by operations to define their metadata contribution.
Example: Add pagination metadata shape
metadata_shape do
reference :pagination
endInstance Methods
#array
#array(name, **options, &block)
See also
#array?
#array?(name, **options, &block)
See also
#binary
#binary(name, **options)
See also
#binary?
#binary?(name, **options)
See also
#boolean
#boolean(name, **options)
See also
#boolean?
#boolean?(name, **options)
See also
#date
#date(name, **options)
See also
#date?
#date?(name, **options)
See also
#datetime
#datetime(name, **options)
See also
#datetime?
#datetime?(name, **options)
See also
#decimal
#decimal(name, **options)
See also
#decimal?
#decimal?(name, **options)
See also
#integer
#integer(name, **options)
See also
#integer?
#integer?(name, **options)
See also
#literal
#literal(name, value:, **options)
See also
#merge
#merge(other)
See also
#number
#number(name, **options)
See also
#number?
#number?(name, **options)
See also
#object
#object(name, **options, &block)
See also
#object?
#object?(name, **options, &block)
See also
#options
#options
The capability options for this metadata shape.
Returns
#reference
#reference(name, **options)
See also
#reference?
#reference?(name, **options)
See also
#string
#string(name, **options)
See also
#string?
#string?(name, **options)
See also
#time
#time(name, **options)
See also
#time?
#time?(name, **options)
See also
#union
#union(name, **options, &block)
See also
#union?
#union?(name, **options, &block)
See also
#uuid
#uuid(name, **options)
See also
#uuid?
#uuid?(name, **options)
See also