Releases: aml-org/amf
5.4.8
What's Changed
- W-14801880 - Excluding jackson-databind dependency due vulnerability … by @looseale in #1919
- W:14654096 Add annotations in properties by @damianpedra in #1920
- W-14608042: parse root types as types by @arielmirra in #1915
- W-14875628 (feat): async 2.x setup by @tomsfernandez in #1923
- W-12689951: add mercure binding in async21+ by @arielmirra in #1922
- W-12689954 add emitter and cycle test for defaultContentType by @damianpedra in #1924
- W-14991650 (chore): cherry-pick release fix and publish new RC by @tomsfernandez in #1930
Full Changelog: 5.4.7...5.4.8
5.4.7
What's Changed
- W-14608058: graphql union recursion corner case by @arielmirra in #1911
- W-14668343 (feat): enable configuration adapting for AMLConfigurations instead of just ShapeConfiguration by @tomsfernandez in #1913
Full Changelog: 5.4.6...5.4.7
5.4.6
What's Changed
- W-14138352: fix oas-component to oas-component reference by @arielmirra in #1900
- W-11460908: added parse with JSON-LD schema to CLI by @nschejtman in #1905
- W-11460908: added graphql validation to adhoc cli by @damianpedra in #1906
Full Changelog: 5.4.5...5.4.6
5.4.5
What's Changed
- W-13562873: mitigate bad URI resolution during parsing affecting RT/Traits indexing in resolution by @nschejtman in #1891
- W-13672939/alias-uri-document-change-for-loaders-in-oas by @tomsfernandez in #1892
- W-13992415: fix oas to oas nullable parameter emission by @arielmirra in #1893
- W-14406764 - Added default match case with error in Raml ObjectType by @looseale in #1894
- W-12666258 - Add Long datatype to 'isNumeric' method in MinShape by @looseale in #1895
- W-14180449 - Handling empty file ref for OAS/Inlined by @looseale in #1896
- W-14096194 change error message by @damianpedra in #1897
- W-13562873 - Fix ArrayOutOfBound with paths starting with ../ by @looseale in #1898
- W-14138352: fix parameter with binding header indexation by @arielmirra in #1899
Full Changelog: 5.4.4...5.4.5
5.4.4
What's Changed
- 'any' can't override bugs by @nschejtman in #1879
- W-11460908: update profile dialect version by @nschejtman in #1883
- W-11460908: update report dialect to 1.2.0 by @nschejtman in #1884
- W-11460908: fix typings by @nschejtman in #1885
Full Changelog: 5.4.3...5.4.4
5.4.3
What's Changed
- W-13839996: avoid deleting tracked-element annotations by @arielmirra in #1856
- W 13823763 by @nschejtman in #1834
- Fix stack overflow at new template by @pope1838 in #1860
- W-14105863: when overriding properties if the ranges are both uniones… by @pope1838 in #1869
- Fix exchange api delta by @pope1838 in #1870
- Fix the whole api with delta by @pope1838 in #1871
- W-14129128 - Adding missing annotation in union inheritance by @looseale in #1874
Full Changelog: 5.4.2...5.4.3
5.4.2
What's Changed
- Publish 5.4.0 dev by @damianpedra in #1807
- W-13104073 (feat): adopted amf-core change in IdAdoption by @tomsfernandez in #1810
- W-13599698: skip computing min shape between shapes that share the same ID by @nschejtman in #1811
- W-13595824: [SN] add UnionFlattenerStage to avoid nested unions when having 3+ members by @arielmirra in #1812
- W 13119160 by @nschejtman in #1801
- W-13674143 - Handle NPE in inheritance of Unions with empty anyOf by @looseale in #1818
- Remove legacy out-dated documentation by @nschejtman in #1821
- W-13679560: fix setting & rendering properties of type 'double' in JSONLDObject by @nschejtman in #1822
- (chore): fix code smells while debugging SN Regression by @arielmirra in #1823
- W-13741667 - Fix wrong positive in parsing validation with multiple flows by @looseale in #1824
- W-13739999 (fix): unnest unions in parsing. Didn't remove transformation step because it is still useful in some cases by @tomsfernandez in #1825
- W-13704689: add semantic parser builder to 0rphan nodes annotation parsing by @nschejtman in #1827
- W 11460908 by @nschejtman in #1828
- W-13796171: make idAdopter plugable into amf configuration by @pope1838 in #1830
- W-13735186 Add Automatic-module-names to manifest file by @damianpedra in #1829
- W-13804080: fix multiple inheritance computation between union and object by @nschejtman in #1831
- W-11460908: update ruleset dialect version by @nschejtman in #1837
- W-13183752 Publish 5.4.1 dev by @damianpedra in #1838
- W-13841580 (feat): parse string values with date and date-time formats as dates so they are emitted in the json-ld correctly by @tomsfernandez in #1843
- W-13813016 (feat): added interfaces for 'withProperty' for date-time values by @tomsfernandez in #1844
- W-13813016: avoid re adopt web api at examplesresolution stage by @pope1838 in #1842
- aws semex by @nschejtman in #1845
- W-13915744: avoid adopt when settings properties of a jsonld object by @pope1838 in #1847
- W-11460908: load AWS extensions dialect from resources by @nschejtman in #1846
- W-13183825 Publish 5.4.2 by @damianpedra in #1853
- W-13183825 Publish 5.4.2 b by @damianpedra in #1854
Full Changelog: 5.4.1...5.4.2
5.4.1
What's Changed
-
Publish 5.5.0-SNAPSHOT
-
W-13104073 (feat): adopted amf-core change in IdAdoption
-
W-13599698: skip computing min shape between shapes that share the same ID
-
W-13272640: add UnionFlattenerStage
-
W-13272640: add triple-unions test
-
W-13272640: avoid deleting annotations
-
W-13272640: avoid flattening links
-
W-13272640: avoid adopting again when flattening
-
W-13119160: added removeProperty to JsonLDObject
-
W-13674143 - Handle NPE in inheritance of Unions with empty anyOf
-
Remove legacy out-dated documentation
-
W-13679560: fix setting & rendering properties of type 'double' in JSONLDObject
-
(chore): fix code smells while debugging SN Regression
-
W-13741667 - Fix wrong positive in parsing validation with multiple flows
-
W-13739999 (fix): unnest unions in parsing. Didn't remove transformation step because it is still useful in some cases
-
W-13704689: add semantic parser builder to 0rphan nodes annotation parsing
-
Added some semex nesting tests
-
Added annotation mappings with mapKey tests
-
Updated model documentation
-
W-13796171: make idAdopter plugable into amf configuration (#1830)
-
w-13735186 add automatic-module-name to manifest file
-
W-13804080: fix multiple inheritance computation between union and object
-
Publish 5.4.1-RC.0
-
W-13183752 Temp branh 5.4.1 (#1832)
-
Publish 5.4.1-RC.0
-
fixed version of amf
-
Publish 5.4.1 (#1835)
Changes in AMF 5.4.0
What's Changed
Bump ScalaJS, Scala and SBT versions
- Scala
2.12.15
(before2.12.13
) - ScalaJS
1.6.0
(before0.6.33
) - SBT
1.7.3
(before1.7.1
)
ScalaJS bump side-effects and changes
Now the scalajs artifacts names that ended with _sjs0.6
now end with _sjs1
.
Type-checking methods like instanceOf
have stopped working in JS (they never really did work fully). To recover functionality and even simplify it, we created the class TypeUtil
with type-checking methods:
isTypeOf
receives anAmfObject
and an IRI (string), and returns if that object corresponds to that IRI.- The enum
TypeIRI
has the IRI of every Shape in the model and more, but the method can also receive a string that you can get from the amf model (first element).
- The enum
Similarly, ExceptionUtil
has a method isExceptionType
that receives an AmfException
and an exceptionCode
(string) and returns true if the exception matches with that code. AmfExceptionCode
has all codes from FileLoaderExceptions
.
Finally, if you're using JSOutputBuilder
, now it's being exported from root level, you can get it by doing
import {JsOutputBuilder} from 'amf-client-js';
Commits
- W-12711738/jsonld-schema-fixes by @tomsfernandez in #1788
- W-12711728: cast internal JSON-LD Scalars Long representations to Integers by @nschejtman in #1790
- W-11460908: fix no iteration on element pipeline by @nschejtman in #1789
- W-11460908: fix starting update iteration on non-updated shape by @nschejtman in #1791
- W-11460908: added test for property position by @nschejtman in #1799
- W-11460908: remove full JSON path from property terms in JSON-LD objects by @nschejtman in #1800
- W-12697293: skip re-visiting shapes in cycle detection by @nschejtman in #1802
- W-13217761: make jsonldobject mutable by @pope1838 in #1803
- W-13191540: bump to ScalaJS 1.6 & Scala 2.12.15 & SBT 1.7.3 by @arielmirra in #1804
- typings: move JSOutputBuilder to root-level by @arielmirra in #1805
Full Changelog: 5.3.0...5.4.0
Changes in AMF 5.3.0
Shape Normalization Refactor
This release includes a re-implemention of the algorithm used to normalize types (Shapes) in the graph. Our previous implementation produced information loss in cases with complex type systems. The new implementation is more sound and proved to not lose information in our tests.
This normalization includes the following algorithms: inheritance resolution, cycle detection & validation and type guessing (AnyShapeAdjuster)
Impact
Since we are now processing more information (that was previously lost) this can produce the following effects:
- Change of the validation status of APIs: particularly expect a reduction of false positives and some reduction of false negatives
- Change in the annotations of some Shapes: particularly inherited annotations & inheritance related annotations
Validation Changes
Leap year validation
Previously the leap year was note validated in the instances of date like datatypes, now it is validated.
e.g.: this example use to conform, now it is invalid.
some-date:
type: datetime
example: 2023-02-29T16:41:41.090Z
What's Changed
- W-11460908: fix pipeline name by @nschejtman in #1763
- W-12784127: add json ld instance document wrap fn converter by @pope1838 in #1774
- W-12980908 by @damianpedra in #1775
- W-12670897: add mediatype to the payload validators cache key by @arielmirra in #1776
- Update NexusIQCLI and gradle-common version by @looseale in #1778
- W-11460908: Replace java.util.List.of with list creation by @nschejtman in #1779
- Shape Normalization by @nschejtman in #1781
- W-12989569 - Implemented everit date validators with strict mode and … by @looseale in #1782
- W-12673312: prevent ServersNormalizationStage from overriding Server IDs by @arielmirra in #1783
- (ci): use 1.3.1 ci image version. This sets Eclipse Temurin as JDK distribution by @tomsfernandez in #1784
- (ci): use 1.3.1 ci image version. This sets Eclipse Temurin as JDK distribution by @arielmirra in #1786
- cherry-pick SN fixes, publish RC.2 by @arielmirra in #1792
- cherry-pick JSONLD fixes by @arielmirra in #1793
Full Changelog: 5.2.6...5.3.0