Skip to content

Commit 1356ddc

Browse files
Merge pull request #4 from CASParser/release-please--branches--main--changes--next
release: 0.1.0
2 parents fef09b9 + 6caa550 commit 1356ddc

File tree

49 files changed

+15982
-5389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+15982
-5389
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2121

2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v6
2424

2525
- name: Set up Java
26-
uses: actions/setup-java@v4
26+
uses: actions/setup-java@v5
2727
with:
2828
distribution: temurin
2929
java-version: |
@@ -40,14 +40,17 @@ jobs:
4040
build:
4141
timeout-minutes: 15
4242
name: build
43+
permissions:
44+
contents: read
45+
id-token: write
4346
runs-on: ${{ github.repository == 'stainless-sdks/cas-parser-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
4447
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
4548

4649
steps:
47-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@v6
4851

4952
- name: Set up Java
50-
uses: actions/setup-java@v4
53+
uses: actions/setup-java@v5
5154
with:
5255
distribution: temurin
5356
java-version: |
@@ -61,16 +64,31 @@ jobs:
6164
- name: Build SDK
6265
run: ./scripts/build
6366

67+
- name: Get GitHub OIDC Token
68+
if: github.repository == 'stainless-sdks/cas-parser-java'
69+
id: github-oidc
70+
uses: actions/github-script@v8
71+
with:
72+
script: core.setOutput('github_token', await core.getIDToken());
73+
74+
- name: Build and upload Maven artifacts
75+
if: github.repository == 'stainless-sdks/cas-parser-java'
76+
env:
77+
URL: https://pkg.stainless.com/s
78+
AUTH: ${{ steps.github-oidc.outputs.github_token }}
79+
SHA: ${{ github.sha }}
80+
PROJECT: cas-parser-java
81+
run: ./scripts/upload-artifacts
6482
test:
6583
timeout-minutes: 15
6684
name: test
6785
runs-on: ${{ github.repository == 'stainless-sdks/cas-parser-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
6886
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
6987
steps:
70-
- uses: actions/checkout@v4
88+
- uses: actions/checkout@v6
7189

7290
- name: Set up Java
73-
uses: actions/setup-java@v4
91+
uses: actions/setup-java@v5
7492
with:
7593
distribution: temurin
7694
java-version: |

.github/workflows/publish-sonatype.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818

1919
- name: Set up Java
20-
uses: actions/setup-java@v4
20+
uses: actions/setup-java@v5
2121
with:
2222
distribution: temurin
2323
java-version: |

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.repository == 'CASParser/cas-parser-java' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v6
1616

1717
- name: Check release environment
1818
run: |

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.0.4"
2+
".": "0.1.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-b7fdba3d3f97c7debc22c7ca30b828bce81bcd64648df8c94029b27a3321ebb9.yml
3-
openapi_spec_hash: 03f1315f1d32ada42445ca920f047dff
1+
configured_endpoints: 4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-56b0f699c5437d9e5326626d35dfc972c17d01f12cb416c7f4854c8ea6d0e95e.yml
3+
openapi_spec_hash: 158f405c1880706266d83e6ff16b9d2f
44
config_hash: cb5d75abef6264b5d86448caf7295afa

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Changelog
22

3+
## 0.1.0 (2026-02-14)
4+
5+
Full Changelog: [v0.0.4...v0.1.0](https://github.com/CASParser/cas-parser-java/compare/v0.0.4...v0.1.0)
6+
7+
### Features
8+
9+
* **api:** api update ([9d3c390](https://github.com/CASParser/cas-parser-java/commit/9d3c390cfba81d59d55980edd7948059b308d752))
10+
* **api:** api update ([5fb8812](https://github.com/CASParser/cas-parser-java/commit/5fb8812e08528a570e5f5a7f8c0b044b2fc65879))
11+
* **api:** api update ([1c7a4f1](https://github.com/CASParser/cas-parser-java/commit/1c7a4f1eebb4b336dc85f73a0319b48d568bf06c))
12+
* **api:** api update ([2e6c34f](https://github.com/CASParser/cas-parser-java/commit/2e6c34fbe30670c8ae1a74eb7f0f8fc5e8bb1890))
13+
* **api:** api update ([91a54b7](https://github.com/CASParser/cas-parser-java/commit/91a54b7acbf164ad459293fe697a4b0c9a795758))
14+
* **api:** api update ([557721f](https://github.com/CASParser/cas-parser-java/commit/557721f0775228db057005e912d8f820f512fcca))
15+
* **client:** expose sleeper option ([482319f](https://github.com/CASParser/cas-parser-java/commit/482319f0e19023df4e3ba5414e38914f6ad037fa))
16+
17+
18+
### Bug Fixes
19+
20+
* **client:** deserialization of empty objects ([ce29632](https://github.com/CASParser/cas-parser-java/commit/ce29632f7f03c172ad042bbaa68e431ab2fd7fa7))
21+
* **client:** ensure single timer is created per client ([482319f](https://github.com/CASParser/cas-parser-java/commit/482319f0e19023df4e3ba5414e38914f6ad037fa))
22+
* **client:** incorrect `getPackageVersion` impl ([6772c5e](https://github.com/CASParser/cas-parser-java/commit/6772c5eeb5557a1e494852713cc55ec722b75145))
23+
24+
25+
### Chores
26+
27+
* improve formatter performance ([692db64](https://github.com/CASParser/cas-parser-java/commit/692db64a36ef927e9c0ea23bd57192af99aaaf02))
28+
* update SDK settings ([3350016](https://github.com/CASParser/cas-parser-java/commit/335001679aefb7b54602216202e4dc404799e42c))
29+
330
## 0.0.4 (2025-09-13)
431

532
Full Changelog: [v0.0.3...v0.0.4](https://github.com/CASParser/cas-parser-java/compare/v0.0.3...v0.0.4)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2025 Cas Parser
189+
Copyright 2026 Cas Parser
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,27 @@
22

33
<!-- x-release-please-start-version -->
44

5-
[![Maven Central](https://img.shields.io/maven-central/v/com.cas_parser.api/cas-parser-java)](https://central.sonatype.com/artifact/com.cas_parser.api/cas-parser-java/0.0.4)
6-
[![javadoc](https://javadoc.io/badge2/com.cas_parser.api/cas-parser-java/0.0.4/javadoc.svg)](https://javadoc.io/doc/com.cas_parser.api/cas-parser-java/0.0.4)
5+
[![Maven Central](https://img.shields.io/maven-central/v/com.cas_parser.api/cas-parser-java)](https://central.sonatype.com/artifact/com.cas_parser.api/cas-parser-java/0.1.0)
6+
[![javadoc](https://javadoc.io/badge2/com.cas_parser.api/cas-parser-java/0.1.0/javadoc.svg)](https://javadoc.io/doc/com.cas_parser.api/cas-parser-java/0.1.0)
77

88
<!-- x-release-please-end -->
99

1010
The Cas Parser Java SDK provides convenient access to the [Cas Parser REST API](https://docs.casparser.in/reference) from applications written in Java.
1111

1212
It is generated with [Stainless](https://www.stainless.com/).
1313

14+
## MCP Server
15+
16+
Use the Cas Parser MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
17+
18+
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=cas-parser-node-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImNhcy1wYXJzZXItbm9kZS1tY3AiXSwiZW52Ijp7IkNBU19QQVJTRVJfQVBJX0tFWSI6Ik15IEFQSSBLZXkifX0)
19+
[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22cas-parser-node-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22cas-parser-node-mcp%22%5D%2C%22env%22%3A%7B%22CAS_PARSER_API_KEY%22%3A%22My%20API%20Key%22%7D%7D)
20+
21+
> Note: You may need to set environment variables in your MCP client.
22+
1423
<!-- x-release-please-start-version -->
1524

16-
The REST API documentation can be found on [docs.casparser.in](https://docs.casparser.in/reference). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.cas_parser.api/cas-parser-java/0.0.4).
25+
The REST API documentation can be found on [docs.casparser.in](https://docs.casparser.in/reference). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.cas_parser.api/cas-parser-java/0.1.0).
1726

1827
<!-- x-release-please-end -->
1928

@@ -24,7 +33,7 @@ The REST API documentation can be found on [docs.casparser.in](https://docs.casp
2433
### Gradle
2534

2635
```kotlin
27-
implementation("com.cas_parser.api:cas-parser-java:0.0.4")
36+
implementation("com.cas_parser.api:cas-parser-java:0.1.0")
2837
```
2938

3039
### Maven
@@ -33,7 +42,7 @@ implementation("com.cas_parser.api:cas-parser-java:0.0.4")
3342
<dependency>
3443
<groupId>com.cas_parser.api</groupId>
3544
<artifactId>cas-parser-java</artifactId>
36-
<version>0.0.4</version>
45+
<version>0.1.0</version>
3746
</dependency>
3847
```
3948

@@ -248,13 +257,13 @@ The SDK uses the standard [OkHttp logging interceptor](https://github.com/square
248257
Enable logging by setting the `CAS_PARSER_LOG` environment variable to `info`:
249258

250259
```sh
251-
$ export CAS_PARSER_LOG=info
260+
export CAS_PARSER_LOG=info
252261
```
253262

254263
Or to `debug` for more verbose logging:
255264

256265
```sh
257-
$ export CAS_PARSER_LOG=debug
266+
export CAS_PARSER_LOG=debug
258267
```
259268

260269
## ProGuard and R8
@@ -274,6 +283,8 @@ If the SDK threw an exception, but you're _certain_ the version is compatible, t
274283
> [!CAUTION]
275284
> We make no guarantee that the SDK works correctly when the Jackson version check is disabled.
276285
286+
Also note that there are bugs in older Jackson versions that can affect the SDK. We don't work around all Jackson bugs ([example](https://github.com/FasterXML/jackson-databind/issues/3240)) and expect users to upgrade Jackson for those instead.
287+
277288
## Network options
278289

279290
### Retries
@@ -476,23 +487,6 @@ JsonValue complexValue = JsonValue.from(Map.of(
476487
));
477488
```
478489

479-
Normally a `Builder` class's `build` method will throw [`IllegalStateException`](https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html) if any required parameter or property is unset.
480-
481-
To forcibly omit a required parameter or property, pass [`JsonMissing`](cas-parser-java-core/src/main/kotlin/com/cas_parser/api/core/Values.kt):
482-
483-
```java
484-
import com.cas_parser.api.core.JsonMissing;
485-
import com.cas_parser.api.models.casgenerator.CasGeneratorGenerateCasParams;
486-
import com.cas_parser.api.models.casparser.CasParserSmartParseParams;
487-
488-
CasParserSmartParseParams params = CasGeneratorGenerateCasParams.builder()
489-
.fromDate("2023-01-01")
490-
.password("Abcdefghi12$")
491-
.toDate("2023-12-31")
492-
.email(JsonMissing.of())
493-
.build();
494-
```
495-
496490
### Response properties
497491

498492
To access undocumented response properties, call the `_additionalProperties()` method:

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repositories {
99

1010
allprojects {
1111
group = "com.cas_parser.api"
12-
version = "0.0.4" // x-release-please-version
12+
version = "0.1.0" // x-release-please-version
1313
}
1414

1515
subprojects {

buildSrc/src/main/kotlin/cas-parser.kotlin.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ kotlin {
3333
tasks.withType<Test>().configureEach {
3434
systemProperty("junit.jupiter.execution.parallel.enabled", true)
3535
systemProperty("junit.jupiter.execution.parallel.mode.default", "concurrent")
36+
37+
// `SKIP_MOCK_TESTS` affects which tests run so it must be added as input for proper cache invalidation.
38+
inputs.property("skipMockTests", System.getenv("SKIP_MOCK_TESTS")).optional(true)
3639
}
3740

3841
val ktfmt by configurations.creating

0 commit comments

Comments
 (0)