Skip to content

Commit

Permalink
Minor: Setting Metadata and RuleSet to be optional (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyali97 authored May 15, 2023
1 parent c0526de commit 28482c7
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 24 deletions.
2 changes: 2 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3447,6 +3447,7 @@ components:
type: object
Metadata:
description: User-defined metadata
nullable: true
properties:
tags:
additionalProperties:
Expand Down Expand Up @@ -3521,6 +3522,7 @@ components:
type: object
RuleSet:
description: Schema rule set
nullable: true
properties:
migrationRules:
items:
Expand Down
8 changes: 4 additions & 4 deletions docs/Config.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CompatibilityLevel** | **string** | Compatibility Level | [optional]
**CompatibilityGroup** | **string** | | [optional]
**DefaultMetadata** | [**Metadata**](Metadata.md) | | [optional]
**OverrideMetadata** | [**Metadata**](Metadata.md) | | [optional]
**DefaultRuleSet** | [**RuleSet**](RuleSet.md) | | [optional]
**OverrideRuleSet** | [**RuleSet**](RuleSet.md) | | [optional]
**DefaultMetadata** | Pointer to [**Metadata**](Metadata.md) | | [optional]
**OverrideMetadata** | Pointer to [**Metadata**](Metadata.md) | | [optional]
**DefaultRuleSet** | Pointer to [**RuleSet**](RuleSet.md) | | [optional]
**OverrideRuleSet** | Pointer to [**RuleSet**](RuleSet.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
8 changes: 4 additions & 4 deletions docs/ConfigUpdateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Compatibility** | **string** | Compatibility Level | [optional]
**CompatibilityGroup** | **string** | | [optional]
**DefaultMetadata** | [**Metadata**](Metadata.md) | | [optional]
**OverrideMetadata** | [**Metadata**](Metadata.md) | | [optional]
**DefaultRuleSet** | [**RuleSet**](RuleSet.md) | | [optional]
**OverrideRuleSet** | [**RuleSet**](RuleSet.md) | | [optional]
**DefaultMetadata** | Pointer to [**Metadata**](Metadata.md) | | [optional]
**OverrideMetadata** | Pointer to [**Metadata**](Metadata.md) | | [optional]
**DefaultRuleSet** | Pointer to [**RuleSet**](RuleSet.md) | | [optional]
**OverrideRuleSet** | Pointer to [**RuleSet**](RuleSet.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
4 changes: 2 additions & 2 deletions docs/RegisterSchemaRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Name | Type | Description | Notes
**Id** | **int32** | Globally unique identifier of the schema | [optional]
**SchemaType** | **string** | Schema type | [optional]
**References** | [**[]SchemaReference**](SchemaReference.md) | References to other schemas | [optional]
**Metadata** | [**Metadata**](Metadata.md) | | [optional]
**RuleSet** | [**RuleSet**](RuleSet.md) | | [optional]
**Metadata** | Pointer to [**Metadata**](Metadata.md) | | [optional]
**RuleSet** | Pointer to [**RuleSet**](RuleSet.md) | | [optional]
**Schema** | **string** | Schema definition string | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
4 changes: 2 additions & 2 deletions docs/SchemaString.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Name | Type | Description | Notes
**SchemaType** | **string** | Schema type | [optional]
**Schema** | **string** | Schema string identified by the ID | [optional]
**References** | [**[]SchemaReference**](SchemaReference.md) | Schema references | [optional]
**Metadata** | [**Metadata**](Metadata.md) | | [optional]
**RuleSet** | [**RuleSet**](RuleSet.md) | | [optional]
**Metadata** | Pointer to [**Metadata**](Metadata.md) | | [optional]
**RuleSet** | Pointer to [**RuleSet**](RuleSet.md) | | [optional]
**MaxId** | **int32** | Maximum ID | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
8 changes: 4 additions & 4 deletions model_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ type Config struct {
// Compatibility Level
CompatibilityLevel string `json:"compatibilityLevel,omitempty"`
CompatibilityGroup string `json:"compatibilityGroup,omitempty"`
DefaultMetadata Metadata `json:"defaultMetadata,omitempty"`
OverrideMetadata Metadata `json:"overrideMetadata,omitempty"`
DefaultRuleSet RuleSet `json:"defaultRuleSet,omitempty"`
OverrideRuleSet RuleSet `json:"overrideRuleSet,omitempty"`
DefaultMetadata *Metadata `json:"defaultMetadata,omitempty"`
OverrideMetadata *Metadata `json:"overrideMetadata,omitempty"`
DefaultRuleSet *RuleSet `json:"defaultRuleSet,omitempty"`
OverrideRuleSet *RuleSet `json:"overrideRuleSet,omitempty"`
}
8 changes: 4 additions & 4 deletions model_config_update_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ type ConfigUpdateRequest struct {
// Compatibility Level
Compatibility string `json:"compatibility,omitempty"`
CompatibilityGroup string `json:"compatibilityGroup,omitempty"`
DefaultMetadata Metadata `json:"defaultMetadata,omitempty"`
OverrideMetadata Metadata `json:"overrideMetadata,omitempty"`
DefaultRuleSet RuleSet `json:"defaultRuleSet,omitempty"`
OverrideRuleSet RuleSet `json:"overrideRuleSet,omitempty"`
DefaultMetadata *Metadata `json:"defaultMetadata,omitempty"`
OverrideMetadata *Metadata `json:"overrideMetadata,omitempty"`
DefaultRuleSet *RuleSet `json:"defaultRuleSet,omitempty"`
OverrideRuleSet *RuleSet `json:"overrideRuleSet,omitempty"`
}
4 changes: 2 additions & 2 deletions model_register_schema_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ type RegisterSchemaRequest struct {
SchemaType string `json:"schemaType,omitempty"`
// References to other schemas
References []SchemaReference `json:"references,omitempty"`
Metadata Metadata `json:"metadata,omitempty"`
RuleSet RuleSet `json:"ruleSet,omitempty"`
Metadata *Metadata `json:"metadata,omitempty"`
RuleSet *RuleSet `json:"ruleSet,omitempty"`
// Schema definition string
Schema string `json:"schema,omitempty"`
}
4 changes: 2 additions & 2 deletions model_schema_string.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ type SchemaString struct {
Schema string `json:"schema,omitempty"`
// Schema references
References []SchemaReference `json:"references,omitempty"`
Metadata Metadata `json:"metadata,omitempty"`
RuleSet RuleSet `json:"ruleSet,omitempty"`
Metadata *Metadata `json:"metadata,omitempty"`
RuleSet *RuleSet `json:"ruleSet,omitempty"`
// Maximum ID
MaxId int32 `json:"maxId,omitempty"`
}

0 comments on commit 28482c7

Please sign in to comment.