Skip to content

Commit 79fe77d

Browse files
authored
Minor: update Schema to have Metadata and RuleSet (#39)
1 parent 28482c7 commit 79fe77d

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

SdkGenerationSteps.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat
1818
-o <path-to-schema-registry-sdk-go-directory> \
1919
--package-name schemaregistry --git-user-id confluentinc \
2020
--git-repo-id schema-registry-sdk-go \
21-
--additional-properties=generateInterfaces=true
21+
--additional-properties=generateInterfaces=true \
22+
--additional-properties=nullables=true
2223
```
2324
- Lastly, run `make mock` from schema-registry-sdk-go directory to generate the api_default.go file.

api/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3371,6 +3371,10 @@ components:
33713371
type: array
33723372
schema:
33733373
type: string
3374+
metadata:
3375+
$ref: '#/components/schemas/Metadata'
3376+
ruleset:
3377+
$ref: '#/components/schemas/RuleSet'
33743378
type: object
33753379
SchemaReference:
33763380
example:

docs/Schema.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
1010
**SchemaType** | **string** | | [optional]
1111
**References** | [**[]SchemaReference**](SchemaReference.md) | | [optional]
1212
**Schema** | **string** | | [optional]
13+
**Metadata** | Pointer to [**Metadata**](Metadata.md) | | [optional]
14+
**Ruleset** | Pointer to [**RuleSet**](RuleSet.md) | | [optional]
1315

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

model_schema.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ type Schema struct {
1616
SchemaType string `json:"schemaType,omitempty"`
1717
References []SchemaReference `json:"references,omitempty"`
1818
Schema string `json:"schema,omitempty"`
19+
Metadata *Metadata `json:"metadata,omitempty"`
20+
Ruleset *RuleSet `json:"ruleset,omitempty"`
1921
}

0 commit comments

Comments
 (0)