Skip to content

Commit

Permalink
Restore formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Altynnikov committed Sep 16, 2021
1 parent 88bcef7 commit d232488
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ public void verifyProviderWithSchema() {
Schema providedSchema = createProvidedSchema();

AvroSchemaMetadataProvider provider =
new AvroSchemaMetadataProvider(providedSchema,null, "schemaNamespace", null);
new AvroSchemaMetadataProvider(providedSchema, null, "schemaNamespace", null);

Assert.assertEquals("providedSchemaName", provider.avroSchemaName("temp1"));
Assert.assertEquals("providedSchemaNamespace", provider.avroSchemaNamespace());
Assert.assertEquals("providedSchemaDoc", provider.avroDoc("temp2"));
Assert.assertEquals("Doc for field1", provider.getFieldDoc("field1","dummy"));
Assert.assertEquals("Doc for field2", provider.getFieldDoc("field2","dummy"));
Assert.assertEquals("default", provider.getFieldDoc("field3","default"));
Assert.assertEquals("Doc for field1", provider.getFieldDoc("field1", "dummy"));
Assert.assertEquals("Doc for field2", provider.getFieldDoc("field2", "dummy"));
Assert.assertEquals("default", provider.getFieldDoc("field3", "default"));
}
}
6 changes: 3 additions & 3 deletions docs/provided_schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The main purpose of using this approach is to supply own values for Avro record
Avro record fields in the provided schema are looked up using field `name`, so it is important that the fields' names are the same as in the generated schema.
Thus, it is recommended to copy the generated schema, update `doc` fields and use it as `--avroSchemaFilePath` input.

### A generated Avro schema
### A generated Avro schema example
```
{
"type" : "record",
Expand Down Expand Up @@ -52,7 +52,7 @@ Thus, it is recommended to copy the generated schema, update `doc` fields and us
"tableName" : "table_numbers"
}
```
### A User-provided schema example
### A user-provided schema example
```
{
"type" : "record",
Expand All @@ -72,6 +72,6 @@ Thus, it is recommended to copy the generated schema, update `doc` fields and us
"default" : null,
"doc" : "Your own field description here. #DATA_LEVEL8"
}
],
]
}
```

0 comments on commit d232488

Please sign in to comment.