Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 631 Bytes

regeneration-instructions.md

File metadata and controls

42 lines (30 loc) · 631 Bytes
  1. Download official spec:
wget https://api.youneedabudget.com/papi/spec-v1-swagger.json
  1. Convert from swagger to openapi 3:
java -jar ./swagger-codegen-cli-3.0.29.jar generate -l openapi -i spec-v1-swagger.json -o .
  1. Manually make "note" field nullable in all three locations.

That is, change:

"note" : {
  "type" : "string"
},

to:

"note" : {
  "type" : "string",
  "nullable" : true
},
  1. Generate api:
java -jar openapi-generator-cli.jar generate -i openapi.json -g python --enable-post-process-file --package-name ynab_api
  1. Optionally, format:
yapf -ir **/*.py