-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start adding extension data handling 🚧
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### 0.0.1-alpha (Released 2024-6-19) | ||
* First open alpha release of YAMLicious. Rough feature set: | ||
* Tokenize YAML files | ||
* Encode & Decode YAML tokens | ||
* Write YAML tokens |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,11 @@ module ValidationPackageTypes = | |
Packages: Package list | ||
} | ||
|
||
type ArcValidationExtensionData = { | ||
ArcSpecificationVersion: string | ||
Packages: Package list | ||
ExtensionData: System.Collections.Generic.Dictionary<string, YAMLicious.YAMLiciousTypes.YAMLElement> | ||
} | ||
|
||
open ValidationPackageTypes | ||
|
||
|
@@ -26,6 +31,17 @@ validation_packages: | |
- name: package2 | ||
version: 2.0.0 | ||
- name: package3" | ||
let stringOverflow = "arc_specification: 2.0.0-draft | ||
validation_packages: | ||
- name: package1 | ||
version: 1.0.0 | ||
- name: package2 | ||
version: 2.0.0 | ||
- name: package3 | ||
author: TestAuthor | ||
author_emails: | ||
- [email protected] | ||
- [email protected]" | ||
|
||
let type_ = { | ||
ArcSpecificationVersion = "2.0.0-draft" | ||
|
@@ -35,6 +51,18 @@ validation_packages: | |
{ Name = "package3"; Version = None } | ||
] | ||
} | ||
let typeOverflow_ = { | ||
ArcSpecificationVersion = "2.0.0-draft" | ||
Packages = [ | ||
{ Name = "package1"; Version = Some "1.0.0" } | ||
{ Name = "package2"; Version = Some "2.0.0" } | ||
{ Name = "package3"; Version = None } | ||
] | ||
ExtensionData = | ||
let dict = System.Collections.Generic.Dictionary<string, YAMLicious.YAMLiciousTypes.YAMLElement>() | ||
dict.Add("author", YAMLicious.YAMLiciousTypes.YAMLElement.Value (YAMLicious.YAMLiciousTypes.YAMLContent.create("TestAuthor"))) | ||
dict | ||
} | ||
|
||
open Fable.Pyxpecto | ||
open YAMLicious | ||
|