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.

Multiline description in schema

See original GitHub issue

Hi,

while describing the attributes in my schema objects, sometimes the description is pretty long and it would be nice to split it into multiple lines.

I tried:

attribute_one: 
          type: "string"
          minLength: 1
          enum:
            - "red"
            - "blue"
            - "green"
          required: true
          description: |
            "red" stands for red 

            "blue" stands for blue 

            "green" stands for green 

I was expecting it to be like this:

“red” stands for red “blue” stands for blue “green” stands for green

Instead I got this:

“red” stands for red “blue” stands for blue “green” stands for green

First I tried to use a table, but that didn´t work either.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
SORC3r3rcommented, Jul 18, 2017

Seems like I was using an old index.html. Thaught I chenaged it. Works fine now. Thank you for your support!

0reactions
hkosovacommented, Jul 17, 2017

dist\index.html from the latest master renders multiline schema description in Chrome 59 and Firefox 54 on Windows 7:

multiline

Can you try the latest master?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Defining a schema for response with multiple lines
I am areal newby on RAML. I'm trying to define a schema for a response that will contain multiple lines, just like a...
Read more >
schema description should be a string [] instead of a string
Since one of the main purposes of schemas are to encode and communicate metadata, several colleges and I believe that the JSON schema's...
Read more >
Multi-line list fields in custom site definitions - Perficient Blogs
This nugget is how to define the different types of multi-line text fields in a custom list. The first type of field I...
Read more >
PySpark Read Multiple Lines (multiline) JSON File
Problem: How to read JSON files from multiple lines (multiline option) in PySpark with Python example? ... printSchema() yields below schema.
Read more >
JSON schema for creating a content type - Contentstack
description: This key allows you to provide the content for the Rich text editor field. multiline: This key provides multiline capabilities to the...
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