-
Notifications
You must be signed in to change notification settings - Fork 549
RESTWS-980: Initial implementation of OpenAPI Generator Maven Plugin with JavaParser integration #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
capernix
wants to merge
12
commits into
openmrs:master
Choose a base branch
from
capernix:RESTWS-980
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
RESTWS-980: Initial implementation of OpenAPI Generator Maven Plugin with JavaParser integration #657
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
bdc387f
Implemented a method to find all properties of a given resource
capernix 9dee07a
Added in tests to validate Schema Introspection
capernix b2f519f
Added the feature of including properties from @PropertyGetter as well
capernix 509bed8
Added a working Mojo Plugin
capernix 4919379
Added javaparser PoC successfully
capernix 46662c4
Enhanced the Plugin to invoke the required function and parse represe…
capernix 578ecac
Adding logging with slf4j, improved indentation of Mojo, corrected ve…
capernix a9dee67
Removed the Schema Introspector Functionality and phased it inside th…
capernix 8cbf3f1
Modified the error handling practices to be more descriptive and remo…
capernix 966ed50
Fixes for RESTWS-980 (Plugin, ConditionResource, etc.)
capernix cc95ed5
Moving the OpenAPI Plugin to the parent directory and adding it to th…
capernix 08a9287
Added OpenMRS repo information in the pom file
capernix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,148 @@ | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <groupId>org.openmrs.plugin</groupId> | ||
| <artifactId>openapi-generator-maven-plugin</artifactId> | ||
| <version>1.0.0-SNAPSHOT</version> | ||
| <packaging>maven-plugin</packaging> | ||
|
|
||
| <name>Rest Web Services OpenAPI Plugin</name> | ||
| <description>A Maven plugin for generating OpenAPI specifications for OpenMRS modules.</description> | ||
|
|
||
| <properties> | ||
| <maven.compiler.source>1.8</maven.compiler.source> | ||
| <maven.compiler.target>1.8</maven.compiler.target> | ||
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| </properties> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.apache.maven</groupId> | ||
| <artifactId>maven-plugin-api</artifactId> | ||
| <version>3.8.6</version> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.apache.maven.plugin-tools</groupId> | ||
| <artifactId>maven-plugin-annotations</artifactId> | ||
| <version>3.6.4</version> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.apache.maven</groupId> | ||
| <artifactId>maven-core</artifactId> | ||
| <version>3.8.6</version> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>com.github.javaparser</groupId> | ||
| <artifactId>javaparser-core</artifactId> | ||
| <version>3.25.5</version> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>io.swagger</groupId> | ||
| <artifactId>swagger-core</artifactId> | ||
| <version>1.6.2</version> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>io.swagger</groupId> | ||
| <artifactId>swagger-models</artifactId> | ||
| <version>1.6.2</version> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>io.swagger</groupId> | ||
| <artifactId>swagger-annotations</artifactId> | ||
| <version>1.6.2</version> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>io.swagger.core.v3</groupId> | ||
| <artifactId>swagger-core</artifactId> | ||
| <version>2.2.8</version> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>io.swagger.core.v3</groupId> | ||
| <artifactId>swagger-models</artifactId> | ||
| <version>2.2.8</version> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>io.swagger.core.v3</groupId> | ||
| <artifactId>swagger-annotations</artifactId> | ||
| <version>2.2.8</version> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-databind</artifactId> | ||
| <version>2.15.2</version> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.dataformat</groupId> | ||
| <artifactId>jackson-dataformat-yaml</artifactId> | ||
| <version>2.15.2</version> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.openmrs.api</groupId> | ||
| <artifactId>openmrs-api</artifactId> | ||
| <version>2.7.0</version> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.openmrs.module</groupId> | ||
| <artifactId>webservices.rest-omod-common</artifactId> | ||
| <version>2.50.0-SNAPSHOT</version> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.springframework</groupId> | ||
| <artifactId>spring-web</artifactId> | ||
| <version>5.3.30</version> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>javax.servlet</groupId> | ||
| <artifactId>servlet-api</artifactId> | ||
| <version>2.5</version> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-plugin-plugin</artifactId> | ||
| <version>3.6.4</version> | ||
| <executions> | ||
| <execution> | ||
| <id>default-descriptor</id> | ||
| <phase>process-classes</phase> | ||
| <goals> | ||
| <goal>descriptor</goal> | ||
| </goals> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <version>3.10.1</version> | ||
| <configuration> | ||
| <source>1.8</source> | ||
| <target>1.8</target> | ||
| </configuration> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </project> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.