-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* catalog definition update * protobuf record name update to reflect java class naming --------- Co-authored-by: AJ <[email protected]>
- Loading branch information
Showing
8 changed files
with
370 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
--- | ||
shortTitle: avro | ||
description: Zilla runtime avro model | ||
category: | ||
- Models | ||
--- | ||
|
||
# avro model | ||
|
||
::: info Feature Coming Soon <HopeIcon icon="fas fa-circle-right"/> | ||
This is currently on the [Zilla roadmap](https://github.com/orgs/aklivity/projects/4). Star and watch the [Zilla repo](https://github.com/aklivity/zilla/releases) for new releases! | ||
::: | ||
|
||
Zilla runtime avro model | ||
|
||
```yaml {1} | ||
model: avro | ||
view: json | ||
catalog: | ||
items-catalog: | ||
- strategy: topic | ||
version: latest | ||
- subject: items-snapshots | ||
version: latest | ||
- id: 1 | ||
``` | ||
## Summary | ||
Defines a model to utilize schema from catalog to enforce validation, ensuring adherence to predefined data structures. | ||
## Configuration | ||
:::: note Properties | ||
- [view](#view) | ||
- [catalog\*](#catalog) | ||
- [catalog.strategy](#catalog-strategy) | ||
- [catalog.subject](#catalog-subject) | ||
- [catalog.version](#catalog-version) | ||
- [catalog.id](#catalog-id) | ||
::: right | ||
\* required | ||
::: | ||
:::: | ||
### view | ||
> `enum` [ "json" ] | ||
|
||
Transforms the model from this data type to the Avro schema on produce and to this data type from the Avro schema on consume. | ||
|
||
### catalog\* | ||
|
||
> `object` | ||
|
||
To map defined catalog for schema retrieval based on catalog specific parameters. Any of the possible combination can be configured. | ||
|
||
> `id` | ||
----- | ||
> `strategy` | ||
> `version` | ||
----- | ||
> `subject` | ||
> `version` | ||
|
||
#### catalog.strategy | ||
|
||
> `enum` [ "topic" ] | ||
|
||
To determine the subject based on the specified strategy | ||
|
||
#### catalog.subject | ||
|
||
> `string` | ||
|
||
Unique identifier for schema categorization in the catalog. | ||
|
||
#### catalog.version | ||
|
||
> `string` | Default: `"latest"` | ||
|
||
Specific iteration or version of a registered schema in the defined catalog. | ||
|
||
#### catalog.id | ||
|
||
> `integer` | ||
|
||
Define specific schema id to refer from catalog. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
shortTitle: integer | ||
description: Zilla runtime integer model | ||
category: | ||
- Models | ||
--- | ||
|
||
# integer Model | ||
|
||
::: info Feature Coming Soon <HopeIcon icon="fas fa-circle-right"/> | ||
This is currently on the [Zilla roadmap](https://github.com/orgs/aklivity/projects/4). Star and watch the [Zilla repo](https://github.com/aklivity/zilla/releases) for new releases! | ||
::: | ||
|
||
Zilla runtime integer model | ||
|
||
```yaml {1} | ||
model: integer | ||
``` | ||
## Summary | ||
Defines a model to enforce validation for integer data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
--- | ||
shortTitle: json | ||
description: Zilla runtime json model | ||
category: | ||
- Models | ||
--- | ||
|
||
# json Model | ||
|
||
::: info Feature Coming Soon <HopeIcon icon="fas fa-circle-right"/> | ||
This is currently on the [Zilla roadmap](https://github.com/orgs/aklivity/projects/4). Star and watch the [Zilla repo](https://github.com/aklivity/zilla/releases) for new releases! | ||
::: | ||
|
||
Zilla runtime json model | ||
|
||
```yaml {1} | ||
model: json | ||
catalog: | ||
items-catalog: | ||
- strategy: topic | ||
version: latest | ||
- subject: items-snapshots | ||
version: latest | ||
- id: 1 | ||
``` | ||
## Summary | ||
Defines a model to utilize schema from catalog to enforce validation, ensuring adherence to predefined data structures. | ||
## Configuration | ||
:::: note Properties | ||
- [catalog\*](#catalog) | ||
- [catalog.strategy](#catalog-strategy) | ||
- [catalog.subject](#catalog-subject) | ||
- [catalog.version](#catalog-version) | ||
- [catalog.id](#catalog-id) | ||
::: right | ||
\* required | ||
::: | ||
:::: | ||
### catalog\* | ||
> `object` | ||
|
||
To map defined catalog for schema retrieval based on catalog specific parameters. Any of the possible combination can be configured. | ||
|
||
> `id` | ||
----- | ||
> `strategy` | ||
> `version` | ||
----- | ||
> `subject` | ||
> `version` | ||
|
||
#### catalog.strategy | ||
|
||
> `enum` [ "topic" ] | ||
|
||
To determine the subject based on the specified strategy | ||
|
||
#### catalog.subject | ||
|
||
> `string` | ||
|
||
Unique identifier for schema categorization in the catalog. | ||
|
||
#### catalog.version | ||
|
||
> `string` | Default: `"latest"` | ||
|
||
Specific iteration or version of a registered schema in the defined catalog. | ||
|
||
#### catalog.id | ||
|
||
> `integer` | ||
|
||
Define specific schema id to refer from catalog. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
--- | ||
shortTitle: protobuf | ||
description: Zilla runtime protobuf model | ||
category: | ||
- Models | ||
--- | ||
|
||
# protobuf Model | ||
|
||
::: info Feature Coming Soon <HopeIcon icon="fas fa-circle-right"/> | ||
This is currently on the [Zilla roadmap](https://github.com/orgs/aklivity/projects/4). Star and watch the [Zilla repo](https://github.com/aklivity/zilla/releases) for new releases! | ||
::: | ||
|
||
Zilla runtime protobuf model | ||
|
||
```yaml {1} | ||
model: protobuf | ||
view: json | ||
catalog: | ||
items-catalog: | ||
- strategy: topic | ||
version: latest | ||
record: EchoMessage | ||
- subject: items-snapshots | ||
version: latest | ||
record: EchoMessage | ||
- id: 1 | ||
record: EchoMessage | ||
``` | ||
## Summary | ||
Defines a model to utilize schema from catalog to enforce validation, ensuring adherence to predefined data structures. | ||
## Configuration | ||
:::: note Properties | ||
- [view](#view) | ||
- [catalog\*](#catalog) | ||
- [catalog.strategy](#catalog-strategy) | ||
- [catalog.subject](#catalog-subject) | ||
- [catalog.version](#catalog-version) | ||
- [catalog.id](#catalog-id) | ||
- [catalog.record\*](#catalog-record) | ||
::: right | ||
\* required | ||
::: | ||
:::: | ||
### view | ||
> `enum` [ "json" ] | ||
|
||
Transforms the model from this data type to the Protobuf schema on produce and to this data type from the Protobuf schema on consume. | ||
|
||
### catalog\* | ||
|
||
> `object` | ||
|
||
To map defined catalog for schema retrieval based on catalog specific parameters. Any of the possible combination can be configured. | ||
|
||
> `id` | ||
> `record` | ||
----- | ||
> `strategy` | ||
> `version` | ||
> `record` | ||
----- | ||
> `subject` | ||
> `version` | ||
> `record` | ||
|
||
#### catalog.strategy | ||
|
||
> `enum` [ "topic" ] | ||
|
||
To determine the subject based on the specified strategy | ||
|
||
#### catalog.subject | ||
|
||
> `string` | ||
|
||
Unique identifier for schema categorization in the catalog. | ||
|
||
#### catalog.version | ||
|
||
> `string` | Default: `"latest"` | ||
|
||
Specific iteration or version of a registered schema in the defined catalog. | ||
|
||
#### catalog.id | ||
|
||
> `integer` | ||
|
||
Define specific schema id to refer from catalog. | ||
|
||
#### catalog.record\* | ||
|
||
> `string` | ||
|
||
Define specific record to refer from Protobuf schema. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
shortTitle: string | ||
description: Zilla runtime string model | ||
category: | ||
- Models | ||
--- | ||
|
||
# string Model | ||
|
||
::: info Feature Coming Soon <HopeIcon icon="fas fa-circle-right"/> | ||
This is currently on the [Zilla roadmap](https://github.com/orgs/aklivity/projects/4). Star and watch the [Zilla repo](https://github.com/aklivity/zilla/releases) for new releases! | ||
::: | ||
|
||
Zilla runtime string model | ||
|
||
```yaml {1} | ||
model: string | ||
encoding: utf_8 | ||
``` | ||
## Summary | ||
Defines a model to enforce validation for string data. | ||
## Configuration | ||
:::: note Properties | ||
- [encoding\*](#encoding) | ||
::: right | ||
\* required | ||
::: | ||
:::: | ||
### encoding\* | ||
> `string` | ||
|
||
Define character encoding for unicode. |
Oops, something went wrong.