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.

Composed models in the properties of a parameter

See original GitHub issue

Hi,

When I have composed models in the properties of a parameter, the field allOf is handled as a UntypedProperty and I lost all the information about the childs. Here a swagger example with the problem:

swagger: '2.0'
info:
  description: 'Good'
  version: '2.0.0'
  title: 'Test'
paths:
  /foo:
    post:
      parameters:
        - name: id
          in: body
          description: Dummy header
          required: false
          schema:
            type: object
            required:
              - id
            properties:
              event:
                allOf:
                  - type: object
                    properties:
                      child1:
                        type: string
                  - type: object
                    properties:
                      child2:
                        type: string
      responses:
        200:
          description: 'OK'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
frantumacommented, Aug 1, 2018

@dvallejo @ymohdriz thanks for your effort! Implemented the core change in swagger-api/swagger-core#2890, please check if you’re still experiencing the issue, if not please close ticket and related PR #782

0reactions
gracekarinacommented, Aug 10, 2018

Hi, I’m closing this issue, in case the solution is not in swagger-api/swagger-core#2890 please let us know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Statistical properties of the model parameters in the continuum ...
This paper is a sequel to papers studying the continuum approach to the high-cycle fatigue model of Ottosen et al. First, we study...
Read more >
Creating model parameters—ArcMap | Documentation
Any model variable can be made into a model parameter. When a variable is made into a model parameter, its value can be...
Read more >
Parameter - Wikipedia
Music. In music theory, a parameter denotes an element which may be manipulated (composed), separately from the other elements. The term is used...
Read more >
On Some Properties of Parameterized Model Application
Model composition provides a way to combine models and model parameterization allows the reuse of models in multiple contexts. In this paper, we ......
Read more >
What Are Model Parameters In Deep Learning, and How To ...
Model Parameters are properties of training data that will learn during the learning process, in the case of deep learning is weight and...
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