Skip to content

Commit

Permalink
Add template reference in README.md and bump version (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym authored Dec 5, 2022
2 parents 90ec0cb + 10a5722 commit 4322022
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ This library provides an easy and compact OpenAPI 3 schema generator and validat

This package is still in **development**. Functions and interfaces documented here will likely never change, but other internal functions and procedures can change during the initial weeks after publishing.

A template repository is available at [cloudflare/templates](https://github.com/cloudflare/templates/tree/main/worker-openapi),
with a live demo [here](https://worker-openapi-example.radar.cloudflare.com/docs).


## Features

- [x] Drop-in replacement for existing itty-router applications
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudflare/itty-router-openapi",
"version": "0.0.9",
"version": "0.0.11",
"description": "OpenAPI schema generator and validator for Cloudflare Workers",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export class Enumeration extends Str {

constructor(params: EnumerationParameterType) {
super(params)
console.log(params.values)

this.keys = Object.keys(params.values)
this.values = params.values
}
Expand Down

0 comments on commit 4322022

Please sign in to comment.