This repository was archived by the owner on Feb 25, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments