Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
RAGO - RAG OpenAPI Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
RAGO - RAG OpenAPI Framework
Commits
40a31f5d
Commit
40a31f5d
authored
3 years ago
by
Jueun Park
Browse files
Options
Downloads
Patches
Plain Diff
tried to parse YAML to OpenAPI, regenerated a diagram
parent
bc6976bc
No related branches found
No related tags found
1 merge request
!1
Tests/openapi generator
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/tudresden/inf/st/openapi/OpenAPIMain.java
+4
-2
4 additions, 2 deletions
src/main/java/de/tudresden/inf/st/openapi/OpenAPIMain.java
uml/relast.png
+0
-0
0 additions, 0 deletions
uml/relast.png
with
4 additions
and
2 deletions
src/main/java/de/tudresden/inf/st/openapi/OpenAPIMain.java
+
4
−
2
View file @
40a31f5d
...
...
@@ -26,14 +26,16 @@ public class OpenAPIMain {
File
resource
=
new
File
(
"./src/main/resources"
);
// init parser
String
fileName
=
"./src/main/resources/3.
1/basicOAS31
.yaml"
;
String
fileName
=
"./src/main/resources/3.
0/petstore
.yaml"
;
ParseOptions
options
=
new
ParseOptions
();
options
.
setResolve
(
true
);
options
.
setResolveFully
(
true
);
options
.
setAllowEmptyString
(
false
);
SwaggerParseResult
result
=
new
OpenAPIParser
().
readLocation
(
fileName
,
null
,
options
);
SwaggerParseResult
result
=
new
OpenAPIParser
().
readLocation
(
fileName
,
null
,
null
);
OpenAPI
openAPI
=
result
.
getOpenAPI
();
//System.out.println(openAPI.getPaths().get("/pet").getPost().getRequestBody().get$ref());
// Yaml String
System
.
out
.
println
(
Yaml
.
mapper
().
writerWithDefaultPrettyPrinter
().
writeValueAsString
(
openAPI
));
...
...
This diff is collapsed.
Click to expand it.
uml/relast.png
+
0
−
0
View replaced file @
bc6976bc
View file @
40a31f5d
292 KiB
|
W:
|
H:
1.17 MiB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment