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
Flags:
--accept-language string HTTP header indicating client's preferred natural language. (default "en")
--content string Content of the record or pattern to retrieve. The string between the two slashes is evaluated as a regular expression. The wildcard form is also supported.
-h, --help help for get-records
--id ints Internal ID(s) of the record(s) to retrieve.
--is-active Retrieve only records in the specified state.
--limit int Retrieve the first *limit* records or fewer if not enough records. Use -1 for unlimited.
*Default value* : 50
--name string Name of the record or pattern to retrieve. The string between the two slashes is evaluated as a regular expression. The wildcard form is also supported.
--note string Note of the record or pattern to retrieve. The string between the two slashes is evaluated as a regular expression. The wildcard form is also supported.
--offset int Skip *offset* records from the beginning of the result.
--order strings Sort the result by this field and order (ascending or descending). (default [id])
--ttl min:max Retrieve only records with the specified TTL. Possible values are either exact value or range min:max. Examples: `300`, `300:`, `:300`, `300:3600`.
--type strings Retrieve only records with the specified type(s).
--zone string Retrieve only records belonging to the specified zone(s). The string between the two slashes is evaluated as a regular expression. The wildcard form is also supported.
--zone-type strings Retrieve only records of the specified zone type(s).
As you can see, there is no --owner flag, although in the schema is this field defined as anyOf. When I try to use --owner flag, an error appears indeed:
Error: unknown flag: --owner
I can use global -q flag as an workaround (-q owner=johndoe), but it sure will be better if the --owner flag was generated properly.
I assume there is a problem with anyOf type maybe? I found this PR #85 where is future support of anyOf mentioned...
The text was updated successfully, but these errors were encountered:
I have and API endpoint with following schema (taken from
restish some_api some_endpoint --help
:Then in
Flags
section is this info:As you can see, there is no
--owner
flag, although in the schema is this field defined asanyOf
. When I try to use--owner
flag, an error appears indeed:I can use global
-q
flag as an workaround (-q owner=johndoe
), but it sure will be better if the--owner
flag was generated properly.I assume there is a problem with
anyOf
type maybe? I found this PR #85 where is future support ofanyOf
mentioned...The text was updated successfully, but these errors were encountered: