min9nim / gatsby-blog

Learn, apply and share
https://min9nim.vercel.app
MIT License
1 stars 0 forks source link

TypeScript 쓰면서 OpenAPI Generator 는 안 쓴다고? | LearnApplyShare #26

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

TypeScript 쓰면서 OpenAPI Generator 는 안 쓴다고? | LearnApplyShare

RESTful API 를 이용하는 프론트엔드 개발의 어려움 JavsScript 의 런타임에러가 프론트엔드 개발자들을 오랫동안 괴롭혀 온 것 같이, RESTful API…

https://min9nim.vercel.app/2022-04-07-openapi-generator/

reyoucat commented 2 years ago

감사합니다 글 재밌게 보고갑니다!

Luceta commented 1 year ago

이거 보고 적용해보려했는데 ,, Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI). | Error count: 419, Warning count: 0 Errors: 이런 에러가 나더라구요 ..그래서 gradle 을 skip명령어를 넣어줘도 Exception in thread "main" java.lang.NullPointerException: Cannot invoke "io.swagger.v3.oas.models.OpenAPI.getExtensions()" because "openAPI" is null

요런 에러로 결국 ㅠㅠ

kjk7034 commented 1 year ago

Enum의 한글 오류 부분은 generate 시 ,allowUnicodeIdentifiers=true을 추가해서 해결한 경험이 있습니다.

kjkandrea commented 1 year ago

json => typescript 과정에서 생길 수 있는 문제점은 없을까요? enum 타입을 잘 만들어주지 못한다던가, 스팩에 required, optional 제대로 명시되지않아 typescript 타입도 흐트러진다던가 하는 실전에서의 복잡난해한 케이스도 소개해주시면 더욱 유익해질것같네요!