We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting a default value through magic comments, e.g.:
//zenrpc:bar="bar" Foobar func (srv Service) Foo(ctx contect.Context, foo string) (*Result, *zenrpc.Error) { // ... }
Appear not too generate a Default value in the SMD:
{ Name: "foo", Optional: true, Description: `Foobar`, Type: smd.String, },
Expect something ala:
_MfooAbar_defaultJSON, _ := json.Marshal("bar") // ... { Name: "foo", Optional: true, Description: `Foobar`, Type: smd.String, Default: json.RawMessage(_MfooAbar_defaultJSON), },
zenrpc version v1.0.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Setting a default value through magic comments, e.g.:
Appear not too generate a Default value in the SMD:
Expect something ala:
zenrpc version v1.0.1
The text was updated successfully, but these errors were encountered: