Versions in this module Expand all Collapse all v0 v0.0.2 Oct 23, 2025 Changes in this version + const HandlerTypeCreate + const HandlerTypeDelete + const HandlerTypeList + const HandlerTypeRead + const HandlerTypeUpdate + const JsonPointerReferenceTokenSeparator + const PropertiesJsonPointerPrefix + const PropertiesJsonPointerReferenceToken + const PropertyArrayTypeAttributeList + const PropertyArrayTypeStandard + const PropertyFormatDate + const PropertyFormatDateTime + const PropertyFormatEmail + const PropertyFormatHostname + const PropertyFormatIdnEmail + const PropertyFormatIdnHostname + const PropertyFormatIpv4 + const PropertyFormatIpv6 + const PropertyFormatIri + const PropertyFormatIriReference + const PropertyFormatJsonPointer + const PropertyFormatRegex + const PropertyFormatRelativeJsonPointer + const PropertyFormatTime + const PropertyFormatUri + const PropertyFormatUriReference + const PropertyFormatUriTemplate + const PropertyTypeArray + const PropertyTypeBoolean + const PropertyTypeInteger + const PropertyTypeNull + const PropertyTypeNumber + const PropertyTypeObject + const PropertyTypeString + const ReferenceAnchor + const ReferenceSeparator + const ReferenceTypeDefinitions + const ReferenceTypeProperties + const ReplacementStrategyCreateThenDelete + const ReplacementStrategyDeleteThenCreate + func Sanitize(document string) (string, error) + type Handler struct + HandlerSchema *HandlerSchema + Permissions []string + TimeoutInMinutes int + type HandlerSchema struct + AllOf []*PropertySubschema + AnyOf []*PropertySubschema + OneOf []*PropertySubschema + Properties map[string]*Property + Required []string + type MetaJsonSchema struct + func NewMetaJsonSchemaDocument(document string) (*MetaJsonSchema, error) + func NewMetaJsonSchemaPath(path string) (*MetaJsonSchema, error) + func (s *MetaJsonSchema) ValidateResourceDocument(document string) error + func (s *MetaJsonSchema) ValidateResourceJsonSchema(resourceJsonSchema *ResourceJsonSchema) error + func (s *MetaJsonSchema) ValidateResourcePath(path string) error + type Property struct + AdditionalProperties *bool + AllOf []*PropertySubschema + AnyOf []*PropertySubschema + ArrayType *string + Comment *string + Default interface{} + Description *string + Enum []interface{} + Examples []interface{} + Format *string + InsertionOrder *bool + Items *Property + MaxItems *int + MaxLength *int + Maximum *json.Number + MinItems *int + MinLength *int + Minimum *json.Number + OneOf []*PropertySubschema + Pattern *string + PatternProperties map[string]*Property + Properties map[string]*Property + Ref *Reference + RelationshipRef *PropertyRelationshipRef + Required []string + Type *Type + UniqueItems *bool + func (p *Property) IsRequired(name string) bool + func (p *Property) String() string + type PropertyJsonPointer string + func (p *PropertyJsonPointer) EqualsPath(other []string) bool + func (p *PropertyJsonPointer) EqualsStringPath(path string) bool + func (p *PropertyJsonPointer) Path() []string + func (p *PropertyJsonPointer) String() string + type PropertyJsonPointers []PropertyJsonPointer + func (ptrs PropertyJsonPointers) ContainsPath(path []string) bool + type PropertyRelationshipRef struct + PropertyPath *PropertyJsonPointer + TypeName *string + type PropertySubschema struct + AllOf []*PropertySubschema + AnyOf []*PropertySubschema + OneOf []*PropertySubschema + Properties map[string]*Property + Required []string + type PropertyTransform map[string]string + func (p PropertyTransform) Value(path []string) (string, bool) + type Reference string + func (r Reference) Field() (string, error) + func (r Reference) String() string + func (r Reference) Type() (string, error) + type Resource struct + AdditionalIdentifiers []PropertyJsonPointers + AdditionalProperties *bool + AllOf []*PropertySubschema + AnyOf []*PropertySubschema + ConditionalCreateOnlyProperties PropertyJsonPointers + CreateOnlyProperties PropertyJsonPointers + Definitions map[string]*Property + DeprecatedProperties PropertyJsonPointers + Description *string + Handlers map[string]*Handler + NonPublicDefinitions PropertyJsonPointers + NonPublicProperties PropertyJsonPointers + OneOf []*PropertySubschema + PrimaryIdentifier PropertyJsonPointers + Properties map[string]*Property + PropertyTransform PropertyTransform + ReadOnlyProperties PropertyJsonPointers + ReplacementStrategy *string + Required []string + ResourceLink *ResourceLink + SourceURL *string + Taggable *bool + Tagging *Tagging + TypeName *string + WriteOnlyProperties PropertyJsonPointers + func (r *Resource) Expand() error + func (r *Resource) IsCreateOnlyPropertyPath(path string) bool + func (r *Resource) IsReadOnleyPropertyPath(path string) bool + func (r *Resource) IsRequired(name string) bool + func (r *Resource) ResolveProperties(properties map[string]*Property) error + func (r *Resource) ResolveProperty(property *Property) (bool, error) + func (r *Resource) ResolveReference(ref Reference) (*Property, error) + func (r *Resource) UnwrapOneOfProperties(property *Property) error + type ResourceJsonSchema struct + func NewResourceJsonSchemaDocument(document string) (*ResourceJsonSchema, error) + func NewResourceJsonSchemaPath(path string) (*ResourceJsonSchema, error) + func (s *ResourceJsonSchema) Resource() (*Resource, error) + func (s *ResourceJsonSchema) ValidateConfigurationDocument(document string) error + func (s *ResourceJsonSchema) ValidateConfigurationPath(path string) error + type ResourceLink struct + Comment *string + Mappings map[string]string + TemplateURI *string + type Tagging struct + Permissions []string + TagOnCreate *bool + TagProperty *PropertyJsonPointer + TagUpdatable *bool + Taggable *bool + type Type string + func (t *Type) String() string + func (t *Type) UnmarshalJSON(b []byte) error