We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Having a complex member inside an XoObject which has no members by itself, creates a wrong JSON (the empty JSON has a key "" instead).
A { } B { a: A }
Encoding B leads to
B
{ a: { "": undefined } }
In xo-utils.ts
xo-utils.ts
static copyProperty(src: Xo, dst: Xo, path: string): void { const xoPath = XoUtil.sanitizePath(path); const result = XoUtil.resolveCreate(dst, xoPath); const pathToCopy = (result.value || result?.unresolvedPath?.head === '') ? xoPath : result.resolvedPath.concat(result.unresolvedPath.head).join('.'); dst.resolveAssign(pathToCopy, src.resolve(pathToCopy)); }
The text was updated successfully, but these errors were encountered:
johannesheucher-gip
No branches or pull requests
Having a complex member inside an XoObject which has no members by itself, creates a wrong JSON (the empty JSON has a key "" instead).
Encoding
B
leads toProposed Solution
In
xo-utils.ts
The text was updated successfully, but these errors were encountered: