This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# My `git checkout` command. My `gb` (git branch) alias emits `co` commands as part of stdout: | |
# | |
# $ gb | |
# co 2022-06-21 09:59:27 -0400 bug/CUI-437-achPaymentInstruction-composition | |
# co 2022-06-21 09:49:16 -0400 * feature/CUI-304-wire-transfer-payment | |
# co 2022-06-16 18:25:32 +0000 master | |
# | |
# so I can use this `co` command to quicky check out a branch from within | |
# a comint shell buffer in Emacs by clicking on the desired line and pressing | |
# Enter to execute that line as a shell command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# My `gb` alias for `git branch` runs this | |
# With any command line args, simply run `git branch` with those args. | |
# With no args, lists the branches, sorted by date. Add a `co` command at the top | |
# so I can use my `co` command to quicky check out a branch from within | |
# a comint shell buffer in Emacs by clicking on the desired line and pressing | |
# Enter to execute that line as a shell command | |
if [[ $# == 0 ]] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.3 | |
info: | |
title: openapi-generator | |
description: Error in typescript-angular, not generating resourceId or timestamp interfaces or inheritance; | |
not generating `string` type for non-object schemas. | |
version: 0.1.0 | |
contact: | |
name: Apiture | |
servers: | |
- url: /openapi-generator/issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.0", | |
"info": { | |
"title": "audit-defect", | |
"version": "1.0", | |
"contact": { | |
"name": "David Biesack", | |
"email": "[email protected]" | |
}, | |
"description": "Show how audit reports a required property `name` does not exist when in fact it exists via the `allOf` schema composition." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.0 | |
info: | |
title: Dates | |
description: Date schemas | |
version: 0.0.1 | |
servers: | |
- url: /dates | |
tags: | |
- name: Dates | |
description: Dates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.2 | |
info: | |
title: allOf and requried fields | |
description: >- | |
demonstrate issues with openapi-generator for typescript-axios for | |
schema composition with `allOf` and `required` fields | |
version: 0.0.1 | |
contact: | |
name: Apiture | |
url: 'https://developer.apiture.com' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
title: Widdershins example | |
description: Demonstrate $ref for external schema | |
version: 0.1.0 | |
schemes: | |
- http | |
basePath: /widdershinsRefExample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "An amount of money in a specific currency.", | |
"properties": { | |
"value": { | |
"description": "The net monetary value. A negative amount denotes a debit; a positive amount a credit. The numeric value is represented as a string so that it can be exact with no loss of precision.", | |
"example": "3456.78", | |
"type": "string" | |
}, | |
"currency": { | |
"description": "The [ISO 4217 currency code](https://en.wikipedia.org/wiki/ISO_4217) for this monetary value. This is always upper case ASCII. TODO: ISO 4217 defines three-character codes. However, ISO 4217 does not account for cryptocurrencies. Of note, DASH uses 4 characters.", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// Validate an OpenAPI document using sway library, https://www.npmjs.com/package/sway | |
// | |
// Install node (npm) and then install sway to use this: | |
// | |
// npm install sway --save # (This is only needed once, to install sway) | |
// | |
// From original source by Taylor Singletary (@episod), as shared on APIEvangelists slack #openapi Oct 31 2017 | |
// | |
// Usage if saved as `sway` in your PATH: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: "2.0" | |
info: | |
title: Sample REST API | |
description: A sample REST API for swagger-codegen and apidoc | |
version: "1" | |
contact: | |
name: David Biesack | |
email: [email protected] |