Skip to content

Commit

Permalink
Merge pull request #106 from hadashiA/ku/unity-resolver
Browse files Browse the repository at this point in the history
Add Unity resolvers (part 1)
  • Loading branch information
hadashiA authored Oct 23, 2024
2 parents b089afe + 6339dc0 commit 9e394b3
Show file tree
Hide file tree
Showing 43 changed files with 3,167 additions and 96 deletions.
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

0 comments on commit 9e394b3

Please sign in to comment.