Spec says `name` is required for Link Objects, but example does not have it set
Simon-Laux opened this issue · 0 comments
Simon-Laux commented
this is basically the same thing as #647.
The example does not follow the spec. In the spec the name field is required.
spec: https://spec.open-rpc.org/#link-object
example: link-example-openrpc.json
"links": {
"UserRepositories": {
"description": "Get the repositories by owner.",
"summary": "Get the repos by owner",
"server":{
"name": "Other Server Name",
"description": "Use other server instead",
"url": "http://localhost:9210"
},
"method": "get_repositories_by_owner",
"params": {
"username": "${result.username}"
}
},
"UserRepository": {
"method": "getRepository",
"params": {
"username": "${result.owner.username}",
"slug": "${result.slug}"
}
},
"RepositoryPullRequests": {
"method": "getPullRequestsByRepository",
"params": {
"username": "${result.owner.username}",
"slug": "${result.slug}"
}
},
"PullRequestMerge": {
"method": "mergePullRequest",
"params": {
"username": "${result.author.username}",
"slug": "${result.repository.slug}",
"pid": "${result.id}"
}
}
},