Skip to content

Inline Catalog#445

Merged
jfallows merged 2 commits intoaklivity:feature/schema-registryfrom
ankitk-me:inline
Sep 22, 2023
Merged

Inline Catalog#445
jfallows merged 2 commits intoaklivity:feature/schema-registryfrom
ankitk-me:inline

Conversation

@ankitk-me
Copy link
Contributor

@ankitk-me ankitk-me commented Sep 22, 2023

Fixes #453

"id",
"status"
]
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing newline at EOF

type: inline
options:
subjects:
subject1:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we can use a sample from avro specification or similar?
If so, is there a logical associated name with the structure represented by the schema?
That would make the example more illustrative.

#GENERATED_NOTICES#

This project also includes code under copyright of the following entities:
https://github.com/reaktivity/ No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing newline at EOF

}
subjects.add(config);
return this;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a subjects method taking a mapper, returning InlineSchemaConfigBuilder.

InlineOptionsConfig catalog = new InlineOptionsConfig(singletonList(
new InlineSchemaConfig("subject1", "latest",
"{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"status\":{\"type\":\"string\"}}," +
"\"required\":[\"id\",\"status\"]}")));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use builders instead.

@jfallows jfallows merged commit 694962e into aklivity:feature/schema-registry Sep 22, 2023
@jfallows jfallows linked an issue Sep 23, 2023 that may be closed by this pull request
@ankitk-me ankitk-me deleted the inline branch September 25, 2023 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support inline catalog for validators

2 participants