hackolade / openapi Goto Github PK
View Code? Open in Web Editor NEWHackolade plugin for OpenAPI 3 API documentation
Home Page: https://hackolade.com
License: Other
Hackolade plugin for OpenAPI 3 API documentation
Home Page: https://hackolade.com
License: Other
Attached is a Hackolade file with extension tests for forward engineering tests. Another test is to add path/operation extensions to an existing OpenAPI file and reverse engineer then forward engineer to a different file for comparison.
Hackoldade properly reverse engineers all swagger/OpenAPI structure extensions.
However, the path and many of its subset structure extensions are not forward engineered. I tried numerous test variations with no luck. Hoping it's due to a new user error, please advise.
Looked at the following file to see if path extensions were being handled during forward engineering:
/forward_engineering/helpers/pathHelper.js
'const extensions = getExtensions(data.operationExtensions);'
Thanks in advance.
api-with-path-extensions.zip
I was on thin intellectual ice with my last issue and this one is thinner still, so I beg your indulgence.
But I cloned the OpenAPI Git project to a local repo. Then I pointed VSCode at it.
VSCode reported:
"String does not match the pattern of "^(?:@[a-z0-9-~][a-z0-9-.]*/)?[a-z0-9-][a-z0-9-.~]*$"."
on this bit of JSON:
"name": "OpenAPI",
I copy and pasted the RegEx into a RegEx web validation tool and it said: (https://regex101.com/)
"/ An unescaped delimiter must be escaped with a backslash ()"
RegEx 101 seems to thinks there is something wrong with the forward slash after the asterisk and before the right parenthesis.
VSCode thinks there is something wrong with "OpenAPI" based on the RegEx being right.
If I add the backslash escape recommended by RegEx101 it does not match the string "OpenAPI" in the tool.
I have no idea from where the RegEx originated and of course no idea how to fix it.
Is it self-inflicted? Was there a problem with the way I cloned the Git Project? Or is there something deeper?
Thanks!
I noticed a couple of malfunctioning png images in the ReadMe.
One is just missing and the other has some technical problem.
This just 404s @ line 155 (I think):
https://github.com/hackolade/OpenAPI/raw/master/lib/Swagger%20-%20Add%20request%20action%20menu.png
This doesn't work @ line 175 for some reason that is beyond my meagre understanding.:
![](lib/OpenAPI - Responses.png)
Thanks. I'll check back in a few days.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.