GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-chrome-devtools-protocol/generator at master · HyperionGray/python-chrome-devtools-protocol

Expand file tree

/

generator

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

generator

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.bish-index
.bish-index
 
 
README.md
README.md
 
 
browser_protocol.json
browser_protocol.json
 
 
generate.py
generate.py
 
 
js_protocol.json
js_protocol.json
 
 
test_generate.py
test_generate.py
 
 

README.md

Outline

JQ Commands for getting possible properties

Types

Get all fields for domains[].types[]:

jq '[.domains[] | select( has("types") ) | .types[] | keys] | flatten | unique' browser_protocol.json js_protocol.json 

[
  "deprecated",
  "description",
  "enum",
  "experimental",
  "id",
  "items",
  "properties",
  "type"
]
[
  "description",
  "experimental",
  "id",
  "properties",
  "type"
]

Get all values of domains[].types[].type:

jq '[.domains[] | select( has("types") ) | .types[].type] | unique' browser_protocol.json js_protocol.json 

[
  "array",
  "integer",
  "number",
  "object",
  "string"
]
[
  "integer",
  "number",
  "object",
  "string"
]

Get all fields for domains[].types[type=="object"].properties[]:

jq '[.domains[] | select( has("types") ) | .types[] | select(.type == "object") | select( has("properties") ) | .properties[] | keys] | flatten | unique' browser_protocol.json js_protocol.json

[
  "$ref",
  "description",
  "enum",
  "experimental",
  "items",
  "name",
  "optional",
  "type"
]
[
  "$ref",
  "description",
  "enum",
  "experimental",
  "items",
  "name",
  "optional",
  "type"
]

Commands

Get all fields for domains[].commands[]:

jq '[.domains[].commands[] | keys ] | flatten | unique' browser_protocol.json js_protocol.json

[
  "deprecated",
  "description",
  "experimental",
  "name",
  "parameters",
  "redirect",
  "returns"
]
[
  "description",
  "experimental",
  "name",
  "parameters",
  "redirect",
  "returns"
]

Get all fields for domains[].commands[].parameters[]:

jq '[.domains[].commands[] | select( has("parameters") ) | .parameters[] | keys ] | flatten | unique' browser_protocol.json js_protocol.json

[
  "$ref",
  "deprecated",
  "description",
  "enum",
  "experimental",
  "items",
  "name",
  "optional",
  "type"
]
[
  "$ref",
  "description",
  "enum",
  "experimental",
  "items",
  "name",
  "optional",
  "type"
]

Get all fields for command domains[].commands[].returns[]:

jq '[.domains[].commands[] | select( has("returns") ) | .returns[] | keys ] | flatten | unique' browser_protocol.json js_protocol.json

[
  "$ref",
  "description",
  "experimental",
  "items",
  "name",
  "optional",
  "type"
]
[
  "$ref",
  "description",
  "experimental",
  "items",
  "name",
  "optional",
  "type"
]

Events

Get all fields for domains[].events[]:

jq '[.domains[] | select( has("events") ) | .events[] | keys ] | flatten | unique' browser_protocol.json js_protocol.json

[
  "deprecated",
  "description",
  "experimental",
  "name",
  "parameters"
]
[
  "description",
  "experimental",
  "name",
  "parameters"
]

Get all fields for domains[].events[].parameters[]:

jq '[.domains[] | select( has("events") ) | .events[] | select( has("parameters") ) | .parameters[] | keys ] | flatten | unique' browser_protocol.json js_protocol.json

[
  "$ref",
  "deprecated",
  "description",
  "enum",
  "items",
  "name",
  "optional",
  "type"
]
[
  "$ref",
  "description",
  "enum",
  "experimental",
  "items",
  "name",
  "optional",
  "type"
]
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.