generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
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
Order and group FTL schema output in a nicer way #1089
Labels
Comments
alecthomas
added
enhancement
New feature or request
good first issue
Good for newcomers
labels
Mar 14, 2024
Open
i like this! another thought- it might be nice to add an optional flag to |
That would be super handy, I've wanted something like that many many times. |
Create another issue for it? |
added #1090 |
matt2e
added a commit
that referenced
this issue
Mar 27, 2024
#1089 Ordering and spacing is the following (example has 2 of each declaration type) ``` { config config secret secret database database enum enum data data verb verb } ``` Full example: ``` module echo { config default String config default2 String secret default3 String secret default3 String // An echo request. data EchoRequest { name String? +alias json "name" inner echo.EchoRequest2 +alias json "inner" } data EchoRequest2 { name String? +alias json "name" } data EchoResponse { message String +alias json "message" inner echo.EchoResponse2 +alias json "inner" } data EchoResponse2 { message String +alias json "message" } // Echo returns a greeting with the current time. verb echo(echo.EchoRequest) echo.EchoResponse +calls time.time verb echo2(echo.EchoRequest) echo.EchoResponse +calls time.time } ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently I think it's just alphabetical by (type, name):
I think it would be nice if it was something more like:
The text was updated successfully, but these errors were encountered: