Skip to content

Releases: aml-org/amf

5.4.7

08 Jan 19:44
58ae924
Compare
Choose a tag to compare

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

13 Dec 20:33
574d7fd
Compare
Choose a tag to compare

What's Changed

Full Changelog: 5.4.5...5.4.6

5.4.5

16 Nov 20:33
099c0f7
Compare
Choose a tag to compare

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

20 Oct 20:24
130f497
Compare
Choose a tag to compare

What's Changed

Full Changelog: 5.4.3...5.4.4

5.4.3

21 Sep 19:49
8a5ac8b
Compare
Choose a tag to compare

What's Changed

Full Changelog: 5.4.2...5.4.3

5.4.2

24 Aug 15:56
76797cc
Compare
Choose a tag to compare

What's Changed

Full Changelog: 5.4.1...5.4.2

5.4.1

27 Jul 19:20
af319f2
Compare
Choose a tag to compare

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

30 May 20:31
be00014
Compare
Choose a tag to compare

What's Changed

Bump ScalaJS, Scala and SBT versions

  • Scala 2.12.15 (before 2.12.13)
  • ScalaJS 1.6.0 (before 0.6.33)
  • SBT 1.7.3 (before 1.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 an AmfObject 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).

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

Full Changelog: 5.3.0...5.4.0

Changes in AMF 5.3.0

04 May 19:59
21704c6
Compare
Choose a tag to compare

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

Full Changelog: 5.2.6...5.3.0

Changes in AMF 5.2.6

04 Apr 21:37
0671099
Compare
Choose a tag to compare

What's Changed

  • Add tracked element annotation to shape serializable annotation index by @pope1838 in #1734
  • W-11802973: add warning when using a JSON Schema in type expressions by @arielmirra in #1733
  • W-12587175: union shouldn't propagate custom domain properties to its members by @tomsfernandez in #1732
  • Bump org.json.json to 20230227 by @looseale in #1745
  • W-11802973: check discriminator usage in inline schemas by @arielmirra in #1747
  • W-11460908 [fix regression]: parsing & validating discriminator value as a DataNode in the model by @nschejtman in #1752
  • Update Dockerfile by @tomsfernandez in #1759

Full Changelog: 5.2.5...5.2.6