Skip to content

Commit

Permalink
[Schema Registry] Post-release stuff (#18633)
Browse files Browse the repository at this point in the history
* [Schema Registry] Post-release stuff

* update dep version
  • Loading branch information
deyaaeldeen authored Nov 12, 2021
1 parent caf71de commit a99d769
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 16 deletions.
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

0 comments on commit a99d769

Please sign in to comment.