You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on my own library which subclasses mutations, and I am writing this to see if you would have any interest in merging this particular feature into the mutations gem itself. This will determine some aspects of my approach going forward
classUpdateBook < Mutations::Commandrequireddodesc"The title of the book"string:titleoptionaldodesc"Tags for the book"array:tagsendendend
This gives anyone the ability to generate documentation for the command's interface:
UpdateBook.interface_documentation
This produces (still a WIP)
{required_inputs: ["name"],optional_inputs: ["tags"],schema: {title: {type: "string",description: "The title of the book"},tags: {type: "array",description: "Tags for the book"}}}
I have considered using just a description key in the options hash but think that this is not the optimal style of writing these kinds of things imo and it isn't inline with the rest of the conventions in my library
The text was updated successfully, but these errors were encountered:
I'm working on my own library which subclasses mutations, and I am writing this to see if you would have any interest in merging this particular feature into the mutations gem itself. This will determine some aspects of my approach going forward
This gives anyone the ability to generate documentation for the command's interface:
This produces (still a WIP)
I have considered using just a description key in the options hash but think that this is not the optimal style of writing these kinds of things imo and it isn't inline with the rest of the conventions in my library
The text was updated successfully, but these errors were encountered: