Comments (7)
Closing this issue, has we have now fully migrated to itty-router 4.x
Thanks @kwhitley 😄
from itty-router-openapi.
Also, are you thinking in adding support for class-based endpoints in itty-router (core)?
like what we got in here
import { OpenAPIRoute, Query, Int, Str } from '@cloudflare/itty-router-openapi'
export class ToDoList extends OpenAPIRoute {
static schema = {...}
async handle(request: Request, data: Record<string, any>) {
const { page } = data
return {
currentPage: page,
nextPage: page + 1,
results: ['lorem', 'ipsum'],
}
}
}
from itty-router-openapi.
Hey @kwhitley thanks for posting this here
I wasn't aware of such update coming to itty-router (core), we will do tests to ensure everything will work on this newer version and update our documentation as soon as possible
Thanks 😃
from itty-router-openapi.
Nah, that's out of scope for itty (at least for right now), so definitely on you guys :)
I'd be happy to explore it down the road though!
I'm pretty confident I just nailed the re-typing of itty, so all the latest can be found here, and hopefully we'll be looking at a final release (and off the next
tag) in a day or two. Just finalizing the docs, and trying to get eyes/testers on it!
Main v4.x docs
https://itty.dev/itty-router
Types
https://itty.dev/itty-router/typescript
from itty-router-openapi.
Btw, I'd love a simple example demo/description for this project (using the v4 itty-router@next
) syntax - I'll add it to the docs with a link back to your full documentation :)
from itty-router-openapi.
Hey @kwhitley the upgrade to itty-router 4.x will take a while from our library, we are planning to bundle it with a lot of changes
from itty-router-openapi.
I submitted a PR just now (#60) with the minimal impact inclusion if you're interested :)
from itty-router-openapi.
Related Issues (20)
- Debugging doesn't work
- Don't include content if there is nothing but status that return in the response
- How do I specify the server URL in openapi.json? HOT 1
- TS error when setting docs_url/redoc_url/openapi_url to null
- Allow response headers specification HOT 1
- Allowing multiple content types for the same response status code HOT 1
- oneOf support HOT 1
- Implement Content Negotiation to Support Multiple Response Formats HOT 1
- Is this package maintained? HOT 4
- How to protect OpenAPI docs? HOT 2
- router deep refactoring discussion HOT 5
- Security not applying to the securitySchemes or schema HOT 1
- Cloudflare Workers Vitest integration Broken by this package HOT 2
- Standalone openapi yaml schema generation HOT 2
- itty-router 5 upgrade? HOT 6
- vitest does not work with @asteasolutions/[email protected] (Cannot use require() to import an ES Module.) HOT 2
- Response body validation
- DataOf not really working? HOT 3
- Set example values of bodyRequest, or any field, without setting default? HOT 1
- Swagger UI example request not being properly executed if mounted at /some/path HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from itty-router-openapi.