Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/inventree_test_hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
da655f2312896e7acf1cf1c6f1c14d2a2ef7c35c
4ba5cfbb674b5f25bdd2e52a60488c186faa8d1e
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ This library is published to [Maven Central](https://central.sonatype.com/artifa
<dependency>
<groupId>com.w3asel</groupId>
<artifactId>inventree-sdk-java</artifactId>
<version>1.6.561</version>
<version>1.7.570</version>
</dependency>
```

Alternately, if you're just looking for a jar file you can find it attached to the corresponding [release](https://github.com/1337joe/inventree-sdk-java/releases) here on GitHub.

The version number is a mix of the InvenTree release (1.6) and the schema version (561) with point releases after that when multiple client jars are released against the same schema.
The version number is a mix of the InvenTree release (1.7) and the schema version (570) with point releases after that when multiple client jars are released against the same schema.

The `main` branch of this repository tracks `InvenTree/master` and may not be compatible with the latest stable release. As it is not tied to an InvenTree release, it is published as `-SNAPSHOT` jars ([browsable here](https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/com/w3asel/inventree-sdk-java/)), which may be consumed by [adding the central snapshot repository to your pom](https://central.sonatype.org/publish/publish-portal-snapshots/#consuming-snapshot-releases-for-your-project):

Expand Down
12 changes: 1 addition & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.w3asel</groupId>
<artifactId>inventree-sdk-java</artifactId>
<packaging>jar</packaging>
<version>1.6.572-SNAPSHOT</version>
<version>1.7.573-SNAPSHOT</version>

<name>InvenTree SDK (Java)</name>
<description>A Java implementation of the OpenAPI spec published by InvenTree.</description>
Expand Down Expand Up @@ -170,16 +170,6 @@
<token>^(\s+)- type: string$\n\s+maxLength: 0$\n</token>
<value></value>
</replacement>
<!-- should be non-required fields -->
<replacement>
<token>^\s+- changes_detail$\n</token>
<value></value>
</replacement>
<!-- field missing from schema -->
<replacement>
<token>^(\s+ApiToken:\n.*\n.*\n.*properties:$)(\n\s+)(created:$\n)</token>
<value>$1$2warning:$2 type: string$2 nullable: true$2 readOnly: true$2$3</value>
</replacement>
</replacements>
</configuration>
</plugin>
Expand Down
8 changes: 6 additions & 2 deletions src/main/resources/api.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: InvenTree API
version: '572'
version: '573'
description: API for InvenTree - the intuitive open source inventory management
system
license:
Expand Down Expand Up @@ -27379,6 +27379,10 @@ components:
readOnly: true
nullable: true
description: As entered by the user or action during revocation
warning:
type: string
readOnly: true
nullable: true
required:
- active
- created
Expand Down Expand Up @@ -27618,6 +27622,7 @@ components:
items:
$ref: '#/components/schemas/AuditChangeDetail'
readOnly: true
nullable: true
title: Change Details
cid:
type: string
Expand All @@ -27640,7 +27645,6 @@ components:
- action
- action_label
- changes
- changes_detail
- model_label
- model_type
- object_pk
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/w3asel/inventree/api/TestAuditApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private static void assertAuditLogEntryEquals(JsonObject expected, AuditLogEntry

// TODO implement further when testing a value that populates either of these
assertEquals(0, fields.get("changes_text").getAsString().length(), "Expected empty changes_text");
assertEquals(0, actual.getChangesDetail().size(), "Expected empty changes_detail");
assertNull(actual.getChangesDetail(), "Expected empty changes_detail");

assertNullableFieldEquals(String.class, "cid", fields, actual.getCid());

Expand Down
Loading