Skip to content

Commit

Permalink
avro schema fixes
Browse files Browse the repository at this point in the history
fixed ui filter
removed util module
better error handling
  • Loading branch information
Big-Vi committed Jul 26, 2023
1 parent 92dcdb2 commit 236a5d7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/memphis_handlers_schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func validateGraphqlSchemaContent(schemaContent string) error {
func validateAvroSchemaContent(schemaContent string) error {
_, err := avro.Parse(schemaContent)
if err != nil {
return err
return fmt.Errorf("your Avro file is invalid: %v", err.Error())
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion server/memphis_handlers_user_mgmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ func (umh UserMgmtHandler) GetFilterDetails(c *gin.Context) {
return
}

schemaType := []string{"protobuf", "json", "graphql"}
schemaType := []string{"protobuf", "json", "graphql", "avro"}
usage := []string{"used", "not used"}
c.IndentedJSON(200, gin.H{"tags": tags, "users": users, "type": schemaType, "usage": usage})
return
Expand Down
1 change: 0 additions & 1 deletion ui_src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"reaflow": "5.0.6",
"recharts": "^2.1.16",
"sass": "^1.49.0",
"util": "^0.12.5",
"uuid": "^9.0.0",
"web-vitals": "^2.1.4",
"rdk":"6.4.4"
Expand Down
2 changes: 1 addition & 1 deletion ui_src/src/domain/schema/components/createSchema/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const schemaTypes = [
{
id: 4,
value: 'Avro',
label: 'Avro (New)',
label: 'Avro',
description: (
<span>
The popular. Apache Avro™ is the leading serialization format for record data, and first choice for streaming data pipelines. It offers excellent schema
Expand Down

0 comments on commit 236a5d7

Please sign in to comment.