Support string-references for Nested.
See original GitHub issueE.g. allow back-references or cyclical references.
We could register schema class names whenever Schema is subclassed, which would allow us to do this:
artist = typesystem.Nested('Artist')
A lazy import string would also work:
artist = typesystem.Nested('myproject.schemas:Artist')
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Referencing nested class objects in C# - Stack Overflow
So, you should define one class and declare multiple instances. You can fix this with: C# 6.0 public class Info { public string...
Read more >Support Peers as References for nested objects which use ...
The problem is that the checks which use peers only applies to siblings and not the sublings' childrens. For example, say we want...
Read more >perlref - Perl references and nested data structures
Using a reference as a string produces both its referent's type, including any package blessing as described in perlobj, as well as the...
Read more >Nested Classes - Learning the Java Language
This beginner Java tutorial describes fundamentals of programming in the Java programming language.
Read more >Nested - OpenSearch documentation
This means that the objects in the array are broken down into individual fields, and values for each field across all objects are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
(yeah agreed, hence the parentheses 😉)
See the example in #46 for how we’ll approach it here.
We won’t allow string references unless it’s a field embedded within a specific namespace.
Namespaces end up being simple dict-like interfaces, and will play nicely with JSON Schema ‘definitions’/‘$ref’