You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is to solve not having to duplicate endpoint urls in code. It would be neat if the kubb generation could do this for us in some way when using @kubb/swagger-ts. I dont know whats possible but something like:
Example openapi spec:
openapi: '3.0.2'
info:
title: Example API
version: '1.0'
servers:
- url: https://example.com/v2
paths:
/object/create:
post:
summary: Create an object
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ObjectRequest'
responses:
'200':
description: Object created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/ObjectResponse'
Generated output:
export const videoStreamStatusEnum = {
"v2ObjectCreate": "/v2/object/create",
} as const;
What do you think? Is something like this already possible?
Cheers!
External documents/projects?
No response
What is the feature you are proposing to solve the problem?
No response
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered:
What is the problem this feature would solve?
This is to solve not having to duplicate endpoint urls in code. It would be neat if the kubb generation could do this for us in some way when using
@kubb/swagger-ts
. I dont know whats possible but something like:Example openapi spec:
Generated output:
What do you think? Is something like this already possible?
Cheers!
External documents/projects?
No response
What is the feature you are proposing to solve the problem?
No response
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: