Skip to content

Instantly share code, notes, and snippets.

View ponelat's full-sized avatar

Josh Ponelat ponelat

View GitHub Profile
openapi: 3.0.0
info:
title: The server's URL has no Host part
version: 1.0.0
description: Used to reproduce an unwanted behaviour
servers:
- url: /foo/bar
paths: {}
items:
- id: 0
user_id: 358
job_id: 4012
status: COMPLETE
- id: 1
user_id: 3089
job_id: 3902
status: PENDING
- id: 2
@ponelat
ponelat / notes.md
Created May 12, 2020 15:39
Garden Routers Meetup -

Garden Routers Meetup - BDD 2020-05-12

What is Behaviour Driven Development (BDD)?

  • It is a way of driving a (software) product forward
  • It is often associated with Given/When/Then scenarios (aka Cucumber/Gherkin)
  • It is about writing down what you want before you build it. In a way that everyone can understand
alpha
bravo
charlie
delta
echo
foxtrot
golf
hotel
india
juliet

Contribution Guide

This is a living document and will be updated over time to help make contributions easier. Please make sure to read this guide from time to time and check what has changed.

Contributing to an open source project doesn't have to be through code alone. There are various ways in which you can contribute, and we're happy to accept all kinds of help. This guide will give you information on what kind of contributions you can make, and what steps you should follow.

New to Open Source contributions?

We're all just regular folks, those that write code, add comments, oversee the projects and of course those that use it. The rule of thumb is, if in doubt be kind

@ponelat
ponelat / openapi.json
Created August 27, 2019 08:39
Minimal OpenAPI definition
{"openapi": "3.0.0", "info": { "version": "1.0.0", "title": "Minimal" }, "paths": {} }
@ponelat
ponelat / review-flask-word-count-article.org
Created March 11, 2019 20:09
Review of Flask/WordCount article

Its informative, builds a fun project and does so within a 30min session. Kudos! The article felt a little rushed in the beginning, and I think that’s due to how much info is being taught. Perhaps assume the reader has some knowledge of the tech stacks ( I’ve suggested dropping Bootstrap, for instance )

Typos ( minor )

  • Now instead of displaying our article in <p> tags, we’ll put it inside and <img> tag
  • > inside an <img/> tag
  • and less padding to our images to stop them touching each other.
  • > how does less padding, stop them touching?
  • we add an <a> tag to add a link to our image
  • > with an <a> tag a link is added to our image ( and followed by another and )
openapi: 3.0.0
info:
version: 0.0.0
title: title
description: description
paths:
/one:
get:
responses:
openapi: 3.0.0
info:
version: '1'
title: 'Test of Multipart Form submission'
description: 'When using multipart form as the content type, the example rendered is a JSON object'
servers:
- url: http://httpbin.org
paths:
/anything:
post:
openapi: 3.0.0
servers:
- url: http://httpbin.org
info:
version: "1.0.3-oas3"
title: Some Service
description: Description
paths:
/anything:
get: