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
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [1.1.0-beta-1] - 2026-07-02

### Added
- `readOnly`: when `true`, only generates GET and OPTIONS test cases.
- `serverPattern`: selects the OpenAPI server whose URL matches the substring (e.g. `%dev%`); defaults to the first server if none match, or all servers if omitted.
- `minimalEndpoints`: when `false` (default), adds a valid (200) and an invalid (400) test case per optional query parameter. When `true`, only generates the `testCaseNames`-based cases.
- `microcksHeaders`: when `true`, adds an `X-Microcks-Response-Name` header with the matching response example name (or `default`).
- `generateOneOfAnyOf`: when `true`, resolves `oneOf`/`anyOf` to their first candidate when generating example bodies (`allOf` is always merged).
- `examples`: optional `{ successful, wrong }` object with custom `string`/`number`/`boolean`/`date`/`dateTime` values. `successful` feeds example bodies and valid query-param values; `wrong` feeds the invalid query-param values from `minimalEndpoints`. Unset fields keep the existing defaults.
- `validateSchema`: when `true`, adds an automatic check (an assertion) to each main test case's request test step that verifies the response body matches the JSON Schema of the operation's first 2xx JSON response. Covers type, required, properties, items, enum, oneOf/anyOf, allOf, nullable, pattern, format (email/uuid/date/date-time), length/size/range bounds and additionalProperties.
- `isInline`: when `false` (default), JSON request-body example values are generated as SoapUI Project Properties and referenced from the body via a `${#Project#...}` token instead of being embedded literally. When `true`, literal values are embedded directly in the body (previous behavior).
- `schemaIsInline`: only relevant when `validateSchema` is `true`. When `false` (default), the JSON Schema used by that check is stored separately as a SoapUI Project Property and looked up automatically when the test runs, instead of being written out in full inside the check. When `true`, the full schema is written directly inside the check (previous/only behavior).
- `schemaPrettyPrint`: only relevant when `validateSchema` is `true`. When `true` (default), the JSON Schema used by that check is pretty-printed (indented). When `false`, it is serialized compactly with no extra whitespace. Has no effect on JSON request-body example formatting.
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>net.cloudappi</groupId>
<artifactId>openapi2soapui</artifactId>
<version>1.0.3</version>
<version>1.1.0-beta-1</version>
<packaging>${packaging.type}</packaging>

<name>openapi2soapui</name>
Expand Down Expand Up @@ -52,7 +52,8 @@

<springdoc.version>1.5.6</springdoc.version>
<soapui.version>5.6.0</soapui.version>
<swagger-parser.version>2.0.24</swagger-parser.version>
<swagger-parser.version>2.1.39</swagger-parser.version>
<lombok.version>1.18.30</lombok.version>
</properties>

<profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,13 @@ private Constants() {
public static final String HEADERS_KEY = "headers";
public static final String AUTHENTICATION_PROFILES_KEY = "oAuth2Profiles";
public static final String TEST_CASE_NAMES_KEY = "testCaseNames";

public static final String VALID_HTTP_STATUS_CODES_ASSERTION = "Valid HTTP Status Codes";
public static final String SUCCESS_STATUS_CODE = "200";
public static final String WRONG_STATUS_CODE = "400";
public static final String SCRIPT_ASSERTION = "Script Assertion";
public static final String QUERY_PARAM_VARIANT_PREFIX = "queryString ";
public static final String QUERY_PARAM_VARIANT_WRONG_SUFFIX = " wrong";

public static final String MICROCKS_RESPONSE_NAME_HEADER = "X-Microcks-Response-Name";
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public String newSoapUIProject(@Valid @RequestBody SoapUIProjectRequest newSoapU
if (openAPI != null && openAPI.getInfo() != null && openAPI.getInfo().getVersion() == null) {
throw new APIVersionNotFoundException("Version not found in OpenAPI");
}
SoapUIProject soapUIProject = soapUIProjectService.createSoapUIProject(newSoapUIProject.getApiName(), openAPI,
newSoapUIProject.getOAuth2Profiles(), newSoapUIProject.getHeaders(), newSoapUIProject.getTestCaseNames());
SoapUIProject soapUIProject = soapUIProjectService.createSoapUIProject(newSoapUIProject, openAPI);
String projectContent = soapUIProject.getFileContent();
soapUIProject.deleteTemporaryFile();
return projectContent;
Expand Down
Loading