Versions in this module Expand all Collapse all v1 v1.1.2 Aug 11, 2020 v1.1.1 Aug 11, 2020 Changes in this version + const MetadataFile + const MetadataFolder + func GetJSONSchema() ([]byte, error) + func GetSchema(field reflect.Type, components *ComponentMetadata) (*spec.Schema, error) + func ValidateAgainstSchema(metadata ContractChaincodeMetadata) error + type ComponentMetadata struct + Schemas map[string]ObjectMetadata + type ContactMetadata struct + Email string + Name string + URL string + type ContractChaincodeMetadata struct + Components ComponentMetadata + Contracts map[string]ContractMetadata + Info *InfoMetadata + func ReadMetadataFile() (ContractChaincodeMetadata, error) + func (ccm *ContractChaincodeMetadata) Append(source ContractChaincodeMetadata) + func (ccm *ContractChaincodeMetadata) CompileSchemas() error + type ContractMetadata struct + Default bool + Info *InfoMetadata + Name string + Transactions []TransactionMetadata + type InfoMetadata struct + Contact *ContactMetadata + Description string + License *LicenseMetadata + Title string + Version string + type LicenseMetadata struct + Name string + URL string + type ObjectMetadata struct + AdditionalProperties bool + ID string + Properties map[string]spec.Schema + Required []string + type ParameterMetadata struct + CompiledSchema *gojsonschema.Schema + Description string + Name string + Schema *spec.Schema + type ReturnMetadata struct + CompiledSchema *gojsonschema.Schema + Schema *spec.Schema + type TransactionMetadata struct + Name string + Parameters []ParameterMetadata + Returns ReturnMetadata + Tag []string + func (tm *TransactionMetadata) MarshalJSON() ([]byte, error) + func (tm *TransactionMetadata) UnmarshalJSON(data []byte) error