Comments (8)
Sure,
/api/v1/intern/avtaler/{id}:
parameters:
- $ref: "#/components/parameters/ID"
get:
tags:
- Avtaler
operationId: getAvtale
responses:
200:
description: The specified avtale.
content:
application/json:
schema:
$ref: "#/components/schemas/Avtale"
404:
description: "Avtalen ble ikke funnet"
content:
application/json:
schema:
type: string
Avtale:
type: object
properties:
id:
type: string
format: uuid
tiltakstype:
$ref: "#/components/schemas/EmbeddedTiltakstype"
navn:
type: string
avtalenummer:
type: string
websaknummer:
type: string
lopenummer:
type: string
arrangor:
$ref: "#/components/schemas/ArrangorHovedenhet"
startDato:
type: string
format: date
sluttDato:
type: string
format: date
avtaletype:
$ref: "#/components/schemas/Avtaletype"
status:
$ref: "#/components/schemas/AvtalestatusResponse"
arenaAnsvarligEnhet:
$ref: "#/components/schemas/ArenaNavEnhet"
prisbetingelser:
type: string
nullable: true
administratorer:
type: array
items:
$ref: "#/components/schemas/AvtaleAdministrator"
antallPlasser:
type: number
nullable: true
kontorstruktur:
$ref: "#/components/schemas/NavKontorStruktur"
opphav:
$ref: "#/components/schemas/Opphav"
beskrivelse:
type: string
faneinnhold:
$ref: "#/components/schemas/SanityFaneinnhold"
personopplysninger:
type: array
items:
$ref: "#/components/schemas/Personopplysning"
personvernBekreftet:
type: boolean
nusData:
type: object
properties:
versjon:
type: string
utdanningsnivaa:
type: string
utdanningskategorier:
type: array
items:
type: object
properties:
code:
type: string
nullable: false
name:
type: string
nullable: false
required:
- code
- name
nullable: true
amoKategorisering:
$ref: "#/components/schemas/AmoKategorisering"
nullable: true
required:
- id
- tiltakstype
- navn
- avtalenummer
- arrangor
- startDato
- avtaletype
- status
- prisbetingelser
- kontorstruktur
- opphav
- personopplysninger
- personvernBekreftet
- amoKategorisering
from openapi-ts.
No worries, let me know if there's a use case for the deprecated stuff that isn't covered today. Generally minor releases pre-v1 might contain breaking changes, those would be documented in the migration guide. Thanks for using this package!
from openapi-ts.
Hey @sndrem, can you share your OpenAPI spec?
from openapi-ts.
Seems like setting services.asClass
= true
produces an output that don't have this issue.
But how it's supposed to work without classes? It's a work-in-progress feature? As it is a arrow function, the this
param is not bindable with method.bind(providerThis)
or method.call(providerThis)
. Seems like a breaking change.
This is the default, with services.asClass
not provided or false:
With services.asClass
set to be true
:
from openapi-ts.
@guesant It's the name
parameter causing this which is deprecated, hence no support for making it work together
from openapi-ts.
@guesant It's the
name
parameter causing this which is deprecated, hence no support for making it work together
Wow, that's true. Thank you @mrlubos. Removing the name
produces the following output:
I just didn't now, I'm gonna drop the usage of name
.
Thanks.
from openapi-ts.
I'm gonna take a look at the migration guide before posting here, as it's supposed to have changes before the major version (and I love this project and the improvements its get over the days).
To anyone interested:
The changes started from v0.46.
from openapi-ts.
I'm gonna take a look at the migration guide before posting here, as it's supposed to have changes (and I love this project and the improvements it get over the days).
For anyone interested:
The changes started from v0.45.
--
dependabot just updated the dep and we didn't read the migration guide 😅
from openapi-ts.
Related Issues (20)
- Proper support for integer types HOT 2
- Allow number type as body
- Add possibility to whitelist/blacklist endpoints HOT 2
- Reintroduce ability to generate types in seperate files HOT 1
- Remove `$OpenApiTs` from type generation file HOT 1
- [methodNameBuilder] KO without asClass: true, HOT 4
- Typescript client not working when fastapi responses are in camelCase HOT 6
- Generic Types Not Resolving Correctly HOT 1
- Get response headers HOT 7
- Specifying local client doesn't work - it's overridden by global client HOT 5
- "import" isn't always renamed to "_import" when generating schema HOT 6
- How can I customize withCredentials option in axios? HOT 9
- combination of anyOf with root properties produces union of all including the root HOT 1
- Duplicated response type caused by long $ref HOT 8
- type generation with server side event HOT 1
- AdditionalProperties renders as `unknown`
- Export types from `@hey-api/client-fetch` HOT 5
- There will be an error when operationId is a js keyword, I think we should give this class a prefix or something HOT 7
- Login API with OAuth2PasswordRequestForm Fails Due to Incorrect Content-Type HOT 6
- Dependency-free support for new Fetch API client
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 openapi-ts.