Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit 85fdcab

Browse files
authored
Merge pull request #15 from workos/at-schema-convert-bugfix
[FGA-198] Update raw FGA schema convert output so that it includes version
2 parents 41c702e + 47d80ea commit 85fdcab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/cmd/fga.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ var convertSchemaCMD = &cobra.Command{
626626
Use: "convert <input_file>",
627627
Short: "Convert a schema to a JSON representation (or JSON to schema)",
628628
Long: "Convert a schema to a JSON representation (or JSON to schema) that can be used to apply resource types.",
629-
Example: `workos fga schema convert schema.txt -o json`,
629+
Example: `workos fga schema convert schema.txt --to json`,
630630
Args: cobra.ExactArgs(1),
631631
RunE: func(cmd *cobra.Command, args []string) error {
632632
to, err := cmd.Flags().GetString("to")
@@ -693,7 +693,7 @@ var convertSchemaCMD = &cobra.Command{
693693
if response.Schema != nil {
694694
printer.PrintMsg(*response.Schema)
695695
} else {
696-
printer.PrintJson(response.ResourceTypes)
696+
printer.PrintJson(response)
697697
}
698698
default:
699699
return errors.Errorf("invalid output: %s", output)

0 commit comments

Comments
 (0)