Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Expanded Pet Store (v3)/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Pet Store Expanded</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.modelsolv.reprezen.ui.RepreZenBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.modelsolv.reprezen.zenNature</nature>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
name: "Android Client"
genTemplateId: "com.modelsolv.reprezen.gentemplates.openapi.generator.AndroidClientCodegen"
relativeOutputDir: generated
prerequisites: null
primarySource:
path: "../../../models/petstore-expanded.yaml"
namedSources: null
# The parameters object contains variables that are processed directly by the GenTemplate.
parameters:
# Sort method arguments to place required parameters before optional parameters.
sortParamsByRequiredFlag: null

# Whether to ensure parameter names are unique in an operation (rename parameters that are not).
ensureUniqueParams: null

# boolean, toggles whether unicode identifiers are allowed in names or not, default is false
allowUnicodeIdentifiers: null

# Add form or body parameters to the beginning of the parameter list.
prependFormOrBodyParameters: null

# package for generated models
modelPackage: null

# package for generated api classes
apiPackage: null

# root package for generated code
invokerPackage: null

# groupId for use in the generated build.gradle and pom.xml
groupId: null

# artifactId for use in the generated build.gradle and pom.xml
artifactId: null

# artifact version for use in the generated build.gradle and pom.xml
artifactVersion: null

# source folder for generated code
sourceFolder: null

# A flag to toggle android-maven gradle plugin.
useAndroidMavenGradlePlugin: null

# gradleVersion version for use in the generated build.gradle
androidGradleVersion: null

# compileSdkVersion version for use in the generated build.gradle
androidSdkVersion: null

# buildToolsVersion version for use in the generated build.gradle
androidBuildToolsVersion: null

# boolean - toggle "implements Serializable" for generated models
serializableModel: null

# library template (sub-template) to use
library: null

# Contents of OpenAPI Generator configuration file.
# This is the file that would be passed with --config option on OpenAPI Generator commandline.
# The JSON contents of that file should be the value of this parameter.
# This parameter need not be used. If it is absent, all string-valued parameters are collected into
# a map that is then passed to the OpenAPI Generator module. If a map is provided here, then string-valued
# parameters are still copied in, overriding like-named values appearing in the map.
openApiCodegenConfig: null

# System properties to set, as in the -D option of OpenAPI Generatorcommand line.
# Each property should be a json object with a name/value pair for each property.
# Example: for '-Dmodels -Dapis=User,Pets' use the following:
# value:
# models: ''
# apis: Users,Pets
openApiCodegenSystemProperties: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apply plugin: 'java'

repositories {
maven {
url "http://maven.reprezen.com/repository/releases"
}
maven {
url "http://maven.reprezen.com/repository/eclipse/"
}
mavenCentral()
}

dependencies {
compile ('com.modelsolv.reprezen:com.modelsolv.reprezen.generators.api:1.6.11.9445')
compile ('com.modelsolv.reprezen:com.modelsolv.reprezen.generators.xtend:1.6.11.9445') {
exclude module: 'org.eclipse.equinox.bidi'
exclude module: 'org.eclipse.emf.common.ui'
exclude module: 'org.eclipse.e4.ui.workbench3'
exclude module: 'org.apache.batik.css'
exclude module: 'org.eclipse.e4.ui.css.swt'
}
compile ('com.modelsolv.reprezen:com.modelsolv.reprezen.generators.standard:1.6.11.9445')
compile fileTree(dir: '/Users/tanya/RepreZen/workspace/shared/GenTemplates', include: ['*.jar'])
compile fileTree(dir: '/Users/tanya/RepreZen/workspace/Expanded Pet Store (v3)/lib', include: ['*.jar'])
}

task(execGenTarget, dependsOn: 'classes', type: JavaExec) {
main = 'com.modelsolv.reprezen.generators.api.util.GeneratorLauncher'
classpath = sourceSets.main.runtimeClasspath
args '/Users/tanya/RepreZen/workspace/Expanded Pet Store (v3)/gentargets/petstore-expanded/Android Client/Android Client.gen'
}

defaultTasks 'execGenTarget'
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<parent>
<groupId>com.modelsolv.reprezen.generators</groupId>
<artifactId>expanded-pet-store--v3-</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>android-client-gen</artifactId>
<name>GenTarget Launcher For Android Client.gen</name>
<packaging>pom</packaging>
<properties>
<project.lib.dir>/Users/tanya/RepreZen/workspace/Expanded Pet Store (v3)/lib</project.lib.dir>
<shared.gentemplates.dir>/Users/tanya/RepreZen/workspace/shared/GenTemplates</shared.gentemplates.dir>
</properties>
<build>
<defaultGoal>clean generate-sources</defaultGoal>
<plugins>
<plugin>
<groupId>com.googlecode.addjars-maven-plugin</groupId>
<artifactId>addjars-maven-plugin</artifactId>
<version>1.0.5</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>add-jars</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${shared.gentemplates.dir}</directory>
</resource>
<resource>
<directory>${project.lib.dir}</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<includeProjectDependencies>true</includeProjectDependencies>
<mainClass>com.modelsolv.reprezen.generators.api.util.GeneratorLauncher</mainClass>
<classpathScope>compile</classpathScope>
<cleanupDaemonThreads>false</cleanupDaemonThreads>
<arguments>
<argument>Android Client.gen</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
name: "C# Client"
genTemplateId: "com.modelsolv.reprezen.gentemplates.openapi.generator.CSharpClientCodegen"
relativeOutputDir: generated
prerequisites: null
primarySource:
path: "../../../models/petstore-expanded.yaml"
namedSources: null
# The parameters object contains variables that are processed directly by the GenTemplate.
parameters:
# C# package name (convention: Title.Case).
packageName: null

# C# package version.
packageVersion: null

# source folder for generated code
sourceFolder: null

# The GUID that will be associated with the C# project
packageGuid: null

# Prefix interfaces with a community standard or widely accepted prefix.
interfacePrefix: null

# The target .NET framework version.
targetFramework: null

# Naming convention for the property: 'camelCase', 'PascalCase', 'snake_case' and 'original', which keeps the original name
modelPropertyNaming: null

# Hides the generation timestamp when files are generated.
hideGenerationTimestamp: null

# Sort method arguments to place required parameters before optional parameters.
sortParamsByRequiredFlag: null

# Use DateTimeOffset to model date-time properties
useDateTimeOffset: null

# Deserialize array types to Collection<T> instead of List<T>.
useCollection: null

# Return ICollection<T> instead of the concrete type.
returnICollection: null

# C# Optional method argument, e.g. void square(int x=10) (.net 4.0+ only).
optionalMethodArgument: null

# Generate AssemblyInfo.cs.
optionalAssemblyInfo: null

# Generate {PackageName}.csproj.
optionalProjectFile: null

# Set DataMember's EmitDefaultValue.
optionalEmitDefaultValues: null

# Specifies a AssemblyDescription for the .NET Framework global assembly attributes stored in the AssemblyInfo file.
generatePropertyChanged: null

# Generates code with reduced access modifiers; allows embedding elsewhere without exposing non-public API calls to consumers.
nonPublicApi: null

# boolean, toggles whether unicode identifiers are allowed in names or not, default is false
allowUnicodeIdentifiers: null

# Use the new format (.NET Core) for .NET project files (.csproj).
netCoreProjectFile: null

# Generates self-validatable models.
validatable: null

# Contents of OpenAPI Generator configuration file.
# This is the file that would be passed with --config option on OpenAPI Generator commandline.
# The JSON contents of that file should be the value of this parameter.
# This parameter need not be used. If it is absent, all string-valued parameters are collected into
# a map that is then passed to the OpenAPI Generator module. If a map is provided here, then string-valued
# parameters are still copied in, overriding like-named values appearing in the map.
openApiCodegenConfig: null

# System properties to set, as in the -D option of OpenAPI Generatorcommand line.
# Each property should be a json object with a name/value pair for each property.
# Example: for '-Dmodels -Dapis=User,Pets' use the following:
# value:
# models: ''
# apis: Users,Pets
openApiCodegenSystemProperties: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apply plugin: 'java'

repositories {
maven {
url "http://maven.reprezen.com/repository/releases"
}
maven {
url "http://maven.reprezen.com/repository/eclipse/"
}
mavenCentral()
}

dependencies {
compile ('com.modelsolv.reprezen:com.modelsolv.reprezen.generators.api:1.6.11.9445')
compile ('com.modelsolv.reprezen:com.modelsolv.reprezen.generators.xtend:1.6.11.9445') {
exclude module: 'org.eclipse.equinox.bidi'
exclude module: 'org.eclipse.emf.common.ui'
exclude module: 'org.eclipse.e4.ui.workbench3'
exclude module: 'org.apache.batik.css'
exclude module: 'org.eclipse.e4.ui.css.swt'
}
compile ('com.modelsolv.reprezen:com.modelsolv.reprezen.generators.standard:1.6.11.9445')
compile fileTree(dir: '/Users/tanya/RepreZen/workspace/shared/GenTemplates', include: ['*.jar'])
compile fileTree(dir: '/Users/tanya/RepreZen/workspace/Expanded Pet Store (v3)/lib', include: ['*.jar'])
}

task(execGenTarget, dependsOn: 'classes', type: JavaExec) {
main = 'com.modelsolv.reprezen.generators.api.util.GeneratorLauncher'
classpath = sourceSets.main.runtimeClasspath
args '/Users/tanya/RepreZen/workspace/Expanded Pet Store (v3)/gentargets/petstore-expanded/C# Client/C# Client.gen'
}

defaultTasks 'execGenTarget'
Loading