首页 > 其他分享 >使用Openapi Generator生成TS相关代码

使用Openapi Generator生成TS相关代码

时间:2023-05-09 09:58:02浏览次数:38  
标签:Generator generator jar TS openapi 6.5 org Openapi cli

Openapi Generator是Swagger Codegen的分支,但功能更加强大

1.安装JDK【略】

2.下载jar包

wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.5.0/openapi-generator-cli-6.5.0.jar -O openapi-generator-cli.jar

或者

Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.5.0/openapi-generator-cli-6.5.0.jar

3.将Swagger的JSON描述文件放置到同目录下

4.执行生成命令

java -jar openapi-generator-cli-6.5.0.jar generate -i ./swagger.json -g typescript-rxjs -o ./generate

标签:Generator,generator,jar,TS,openapi,6.5,org,Openapi,cli
From: https://www.cnblogs.com/fanqisoft/p/17383989.html

相关文章

  • 【五期邹昱夫】CCF-A(NeurIPS'19)Inverting gradients-how easy is it to break privacy
    "GeipingJ,BauermeisterH,DrögeH,etal.Invertinggradients-howeasyisittobreakprivacyinfederatedlearning?[J].AdvancesinNeuralInformationProcessingSystems,2020,33:16937-16947."  本文发现梯度的方向比其范数幅值携带了更加重要的信息,以......
  • CF920E Connected Components? 题解
    一道线段树优化建图好题(大雾扣掉一些边看起来不好做,我们直接大力加上存在的边,然后跑连通块。对于一个点,如果他被扣掉了\(k\)个邻居,那么没扣掉的那些形成了至多\(k+1\)个连续段,可以用线段树优化建图向每个连续段各用\(\log\)的代价连边。由于总共扣掉了\(m\)条边,所以总共......
  • FreeSql.Generator实体类生成器
    一、安装:dotnettoolinstall-gFreeSql.Generator安装前请先安装.netcore3.1以上版本,建议安装vs2019以上版本二、说明FreeSql.Generator--help三、简单使用,可以创建bat文件:FreeSql.Generator-Razor1-NameOptions0,0,0,0-NameSpaceMyProject-DB"PostgreSQL,......
  • ubuntu14.04 lts 安装freeswitch
    ubuntu14.04lts安装freeswitch:0、安装一堆依赖包。apt-getinstalllibedit-devlibldns-devlibpcre3-devlibspeexdsp-devlibspeex-devlibcurl4-openssl-devlibopus-devlibncurses5-devlibtiff-devlibjpeg-devzlib1g-devlibssl-devlibsqlite3-devbuild-essential......
  • IELTS学习(005) - 单词(学校教育篇)
    文章目录01引言02词汇目标03单词详解04应用01引言Wearejustanadvancedbreedofmonkeysonaminorplanetofaveryaveragestar.Butwecanunderstandtheuniverse.Thatmakesussomethingveryspecial.-StephenHawking我们只是一颗寻常恒星的一颗小小行星......
  • TSBS 是什么?为什么时序数据库 TDengine 会选择它作为性能对比测试平台?
    去年8月我们在TDengine开发者大会上正式发布了TDengine3.0,TDengine也由此升级成为了一款云原生时序数据库(TimeSeriesDatabase,TSDB)。为了客观、准确、有效地评估TDengine3.0的性能指标,我们决定使用TSBS(TimeSeriesBenchmarkSuite)作为基准性能测试平台,针对DevOps......
  • G. Hits Different
    G.HitsDifferentInacarnivalgame,thereisahugepyramidofcanswith$2023$rows,numberedinaregularpatternasshown.Ifcan$9^2$ishitinitially,thenallcanscoloredredinthepictureabovewouldfall.Youthrowaballatthepyramid,and......
  • XUnit —— Record.Exception —— Stop Using Assert.Throws in Your BDD Unit Tests
    原文:https://www.richard-banks.org/2015/07/stop-using-assertthrows-in-your-bdd.htmlStopUsingAssert.ThrowsinYourBDDUnitTests I’msurewe’veallseenthe Assert.Throws assertionintestcodebynow,butjustincaseyouhaven’t,here'sasimple......
  • [230]连接Redis后执行命令错误 MISCONF Redis is configured to save RDB snapshots
    今天在redis中执行setrangename1chun命令时报了如下错误提示:(error)MISCONFRedisisconfiguredtosaveRDBsnapshots,butiscurrentlynotabletopersistondisk.Commandsthatmaymodifythedatasetaredisabled.PleasecheckRedislogsfordetailsabout......
  • 使用思维链(Chain-of-thoughts)提示在大型语言模型中引出推理
    语言模型(LM)在NLP领域的发展速度非常快,特别是在大型语言模型(LLM)方面:当语言模型具有大量参数或权重/系数时,它们被称为“大型”。这些“大型”语言模型拥有处理和理解大量自然语言数据的能力。LLM被用于一系列自然语言任务,如文本摘要、情感分析、主题分类、语言翻译、自动完成等......