Skip to content

OpenAPI Schema Generation for Abstract Wikipedia/Wikifunctions/Wikilambda

License

Notifications You must be signed in to change notification settings

wikimedia/abstract-wiki-schemata-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

abstract-wiki-schemata-generator

OpenAPI Schema Generation for Abstract Wikipedia/Wikifunctions/Wikilambda

Usage

python generate.py [--form=<NORMAL|CANONICAL>] [command]

Commands

list

Lists all ZIDs for which a schema can be generated with the given form.

generate

Generates an OpenAPI schema for a given ZID.

Arguments:

  • root_directory (string): where to save the generated .yaml files
  • tag (string): tag to be used to generates unique IDs for schemata. IDs are of the form tag/ZID
  • ZID (string): ZID for which to generate the schema
  • dry_run (bool): if true, prints to stdout; if false, write to root_directory/ZID.yaml

About

OpenAPI Schema Generation for Abstract Wikipedia/Wikifunctions/Wikilambda

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages