Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Unity resolvers (part 1) #106

Merged
merged 9 commits into from
Oct 23, 2024
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
14 changes: 7 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ jobs:
license: UNITY_LICENSE_2022_3
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: VYaml.Unity/Library
key: Library-VYaml-${{ matrix.unityVersion }}
restore-keys: |
Library-VYaml-
Library-
# - uses: actions/cache@v2
# with:
# path: VYaml.Unity/Library
# key: Library-VYaml-${{ matrix.unityVersion }}
# restore-keys: |
# Library-VYaml-
# Library-
- uses: game-ci/unity-test-runner@v4
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
Expand Down
2 changes: 1 addition & 1 deletion VYaml.Tests/TypeDeclarations/Simple.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public WithCustomConstructorAndOtherProps(int foo, string bar)
[YamlObject(NamingConvention.SnakeCase)]
public partial class WithCustomNamingConvention
{
public int HogeFuga { get; init; }
public int HogeFuga { get; set; }
}
}

Expand Down
1 change: 1 addition & 0 deletions VYaml.Unity/Assets/Tests/Emitter/Utf8YamlEmitterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,7 @@ public void ComplexStructure()
}

[Test]
[Ignore("The current specification is different from the quoting target required")]
public void SingleQuotedEmitterSettings()
{
var emitter = CreateEmitter(new YamlEmitOptions { StringQuoteStyle = ScalarStyle.SingleQuoted });
Expand Down

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

11 changes: 11 additions & 0 deletions VYaml.Unity/Assets/Tests/QueueFormatterTest.cs.meta

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

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

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

11 changes: 11 additions & 0 deletions VYaml.Unity/Assets/Tests/Serialization/StackFormatterTest.cs.meta

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

2 changes: 1 addition & 1 deletion VYaml.Unity/Assets/Tests/TypeDeclarations/Simple.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public WithCustomConstructorAndOtherProps(int foo, string bar)
[YamlObject(NamingConvention.SnakeCase)]
public partial class WithCustomNamingConvention
{
public int HogeFuga { get; init; }
public int HogeFuga { get; set; }
}
}

Expand Down
Binary file not shown.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ public class StandardResolver : IYamlFormatterResolver
public static readonly IYamlFormatterResolver[] DefaultResolvers =
{
BuiltinResolver.Instance,
#if UNITY_2018_3_OR_NEWER
UnityResolver.Instance,
#endif
GeneratedResolver.Instance,
};

Expand Down
8 changes: 8 additions & 0 deletions VYaml.Unity/Assets/VYaml/Runtime/Serialization/Unity.meta

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

Loading
Loading