Skip to content

Commit

Permalink
Update links to migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Mar 11, 2023
1 parent 71d6e69 commit 1e5d18b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion schema/ridl/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ func parserStateDeclaration(p *parser) parserState {
return parserStateEnum
case "message":
// Deprecated in v0.9.0.
return p.stateError(fmt.Errorf("keyword \"message\" was renamed to \"struct\", see https://github.com/webrpc/webrpc/tree/master/CHANGELOG.md#RIDL+v0.9.0+migration+guide"))
return p.stateError(fmt.Errorf("keyword \"message\" was renamed to \"struct\", see https://github.com/webrpc/webrpc/blob/master/CHANGELOG.md#ridl-v090-migration-guide"))
case wordStruct:
// struct <name>
// - <name>: <type>
Expand Down
2 changes: 1 addition & 1 deletion schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (s *WebRPCSchema) Validate() error {
}

if len(s.Deprecated_Messages) > 0 {
return fmt.Errorf(" field \"messages\" was renamed to \"types\", see https://github.com/webrpc/webrpc/tree/master/CHANGELOG.md#JSON+schema+v0.9.0+migration+guide")
return fmt.Errorf(" field \"messages\" was renamed to \"types\", see https://github.com/webrpc/webrpc/blob/master/CHANGELOG.md#json-schema-v090-migration-guide")
}

return nil
Expand Down

0 comments on commit 1e5d18b

Please sign in to comment.