question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support string-references for Nested.

See original GitHub issue

E.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:open
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
wbolstercommented, Mar 8, 2019

(yeah agreed, hence the parentheses 😉)

1reaction
tomchristiecommented, Mar 8, 2019

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’

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found