Skip to content

Commit

Permalink
Merge pull request #1066 from aml-org/r/v6.3.0
Browse files Browse the repository at this point in the history
R/v6.3.0
  • Loading branch information
emilianoascona authored Sep 24, 2024
2 parents 57f10bf + b10867c commit 4e03f9a
Show file tree
Hide file tree
Showing 241 changed files with 23,860 additions and 972 deletions.
91 changes: 90 additions & 1 deletion als-actions/js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion als-actions/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
},
"dependencies": {
"@aml-org/amf-antlr-parsers": "0.7.25",
"ajv": "6.12.6"
"ajv": "6.12.6",
"avro-js": "1.12.0"
},
"author": "",
"license": "ISC"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
hovers:
(2,5):
- Human readable name for the object
(2,14):
- Human readable name for the object
(3,7):
- (AVRO) a JSON string that qualifies the name
(3,21):
- (AVRO) a JSON string that qualifies the name
(4,5):
- Defines a data type
(4,14):
- Defines a data type
(5,6):
- Properties associated to this node
(7,9):
- Human readable name for the object
(7,17):
- Human readable name for the object
(8,9):
- Defines a data type
(8,18):
- Defines a data type
(11,9):
- Human readable name for the object
(11,19):
- Human readable name for the object
(12,9):
- Defines a data type
(12,18):
- Defines a data type
(15,9):
- Human readable name for the object
(15,17):
- Human readable name for the object
(16,9):
- Data shapes in the union
(16,18):
- Data shapes in the union
(16,27):
- Data shapes in the union
(17,10):
- Default value for this element
(17,19):
- Defines a data type
(20,9):
- Human readable name for the object
(20,16):
- Human readable name for the object
(21,9):
- Data shapes in the union
(21,18):
- Data shapes in the union
(21,25):
- Data shapes in the union
(22,10):
- Default value for this element
(22,19):
- Defines a data type
(25,9):
- Human readable name for the object
(25,28):
- Human readable name for the object
(26,9):
- Defines a data type
(27,11):
- Human readable name for the object
(27,26):
- Human readable name for the object
(28,11):
- Defines a data type
(28,19):
- Defines a data type
(29,12):
- Each element should be part of the provided list to be valid
(29,22):
- Defines a data type
(29,29):
- Defines a data type
(29,36):
- Defines a data type
(29,43):
- Defines a data type
(29,49):
- Defines a data type
(30,12):
- Default value for this element
(30,21):
- Defines a data type
(34,9):
- Human readable name for the object
(34,22):
- Human readable name for the object
(35,9):
- Defines a data type
(36,11):
- Defines a data type
(36,19):
- Defines a data type
(37,11):
- Defines a data type
(37,21):
- Defines a data type
(41,9):
- Human readable name for the object
(41,18):
- Human readable name for the object
(42,9):
- Defines a data type
(43,11):
- Human readable name for the object
(43,20):
- Human readable name for the object
(44,11):
- Defines a data type
(44,20):
- Defines a data type
(45,12):
- Properties associated to this node
(47,15):
- Human readable name for the object
(47,24):
- Human readable name for the object
(48,15):
- Defines a data type
(48,22):
- Defines a data type
(51,15):
- Human readable name for the object
(51,24):
- Human readable name for the object
(52,15):
- Data shapes in the union
(52,24):
- Data shapes in the union
(52,33):
- Data shapes in the union
(53,16):
- Default value for this element
(53,25):
- Defines a data type
(59,9):
- Human readable name for the object
(59,18):
- Human readable name for the object
(60,9):
- Defines a data type
(60,17):
- Defines a data type
(63,9):
- Human readable name for the object
(63,18):
- Human readable name for the object
(64,9):
- Defines a data type
(64,18):
- Defines a data type
(67,9):
- Human readable name for the object
(67,18):
- Human readable name for the object
(68,9):
- Defines a data type
(69,11):
- Scalar range constraining this scalar shape
(69,20):
- Scalar range constraining this scalar shape
(70,14):
- Defines a data type
(70,26):
- Defines a data type
74 changes: 74 additions & 0 deletions als-actions/shared/src/test/resources/actions/hover/avro-full.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"name": "Person",
"namespace": "com.company",
"type": "record",
"fields": [
{
"name": "name",
"type": "string"
},
{
"name": "serialNo",
"type": "string"
},
{
"name": "email",
"type": ["null", "string"],
"default": null
},
{
"name": "age",
"type": ["null", "int"],
"default": null
},
{
"name": "favoriteProgrammingLanguage",
"type": {
"name": "ProgrammingLanguage",
"type": "enum",
"symbols": ["JS", "Java", "Go", "Rust", "C"],
"default": "JS"
}
},
{
"name": "certifications",
"type": {
"type": "array",
"items": "string"
}
},
{
"name": "address",
"type": {
"name": "Address",
"type": "record",
"fields": [
{
"name": "zipcode",
"type": "int"
},
{
"name": "country",
"type": ["null", "string"],
"default": null
}
]
}
},
{
"name": "weight",
"type": "float"
},
{
"name": "height",
"type": "double"
},
{
"name": "someid",
"type": {
"type": "string",
"logicalType": "uuid"
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class HoverActionTest extends AsyncFunSuite with BaseHoverTest {
runTest("library.raml", "library-result.yaml")
}

test("complete avro test") {
runTest("avro-full.avsc", "avro-full-result.yaml")
}

private def runTest(file: String, golden: String): Future[Assertion] = {
val filePath = s"file://$path$file"
val goldenPath = s"file://$path$golden"
Expand Down
Loading

0 comments on commit 4e03f9a

Please sign in to comment.