Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Schema Registry] Post-release stuff #18633

Merged
merged 2 commits into from
Nov 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/schemaregistry/schema-registry-avro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
}
},
"dependencies": {
"@azure/schema-registry": "1.0.0",
"@azure/schema-registry": "1.0.1",
"avsc": "^5.5.1",
"buffer": "^6.0.0",
"tslib": "^2.2.0"
Expand Down
10 changes: 10 additions & 0 deletions sdk/schemaregistry/schema-registry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Release History

## 1.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.0.0 (2021-11-10)

### Features Added
Expand Down
2 changes: 1 addition & 1 deletion sdk/schemaregistry/schema-registry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/schema-registry",
"version": "1.0.0",
"version": "1.0.1",
"description": "Schema Registry Library with typescript type definitions for node.js and browser.",
"sdk-type": "client",
"main": "dist/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/schemaregistry/schema-registry",
"dependencies": {
"@azure/schema-registry": "next",
"@azure/schema-registry": "latest",
"dotenv": "latest",
"@azure/identity": "^2.0.1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const group = process.env["SCHEMA_REGISTRY_GROUP"] || "AzureSdkSampleGroup";
const schemaObject = {
type: "record",
name: "User",
namespace: "com.azure.schemaregistry.samples",
namespace: "com-azure-schemaregistry-samples",
fields: [
{
name: "firstName",
Expand All @@ -36,10 +36,10 @@ const schemaObject = {

// Description of the schema for registration
const schemaDescription = {
name: `${schemaObject.namespace}.${schemaObject.name}`,
name: `${schemaObject.namespace}-${schemaObject.name}`,
groupName: group,
format: "avro",
schemaDefinition: JSON.stringify(schemaObject)
format: "Avro",
definition: JSON.stringify(schemaObject)
};

async function main() {
Expand All @@ -60,7 +60,7 @@ async function main() {
// Get definition of existing schema by its ID
const foundSchema = await client.getSchema(registered.id);
if (foundSchema) {
console.log(`Got schema definition=${foundSchema.schemaDefinition}`);
console.log(`Got schema definition=${foundSchema.definition}`);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/schemaregistry/schema-registry",
"dependencies": {
"@azure/schema-registry": "next",
"@azure/schema-registry": "latest",
"dotenv": "latest",
"@azure/identity": "^2.0.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const group = process.env["SCHEMA_REGISTRY_GROUP"] || "AzureSdkSampleGroup";
const schemaObject = {
type: "record",
name: "User",
namespace: "com.azure.schemaregistry.samples",
namespace: "com-azure-schemaregistry-samples",
fields: [
{
name: "firstName",
Expand All @@ -36,10 +36,10 @@ const schemaObject = {

// Description of the schema for registration
const schemaDescription: SchemaDescription = {
name: `${schemaObject.namespace}.${schemaObject.name}`,
name: `${schemaObject.namespace}-${schemaObject.name}`,
groupName: group,
format: "avro",
schemaDefinition: JSON.stringify(schemaObject)
format: "Avro",
definition: JSON.stringify(schemaObject)
};

export async function main() {
Expand All @@ -60,7 +60,7 @@ export async function main() {
// Get definition of existing schema by its ID
const foundSchema = await client.getSchema(registered.id);
if (foundSchema) {
console.log(`Got schema definition=${foundSchema.schemaDefinition}`);
console.log(`Got schema definition=${foundSchema.definition}`);
}
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/schemaregistry/schema-registry/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ https://github.com/Azure/azure-rest-api-specs/pull/10220 is merged.
```yaml
v3: true
package-name: "@azure/schema-registry"
package-version: 1.0.0
package-version: 1.0.1
title: GeneratedSchemaRegistryClient
description: Generated Schema Registry Client
generate-metadata: false
Expand Down