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.

Allow descriptors to be loaded from a file

See original GitHub issue

Overview

Starting discussion on Gitter

Would be great to be able to externalize documentation message outside of testing class like .properties or .yml files.

Moreover external resources could be localized to allow publish documentation in multiple language:

message.properties
message_fr_FR.properties
message_zh_CN.properties
...

Furthermore link between external resources and testing parameters should be automatic. We must use convention filename/path convention to be able to link each together.

Details

There are many points to take care:

  • Which external resources format will be supported? (properties, yml)
  • How to avoid collisions?
  • An external resource per document identifier?
  • Flat file and prefix (document identifier)?
  • How can I manage placeholder?
key = blabla blabla forbidden values are {0}
  • How to describe message type: STRING or whatever
  • Ability to load external resource outside of Classpath

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
wilkinsonacommented, May 25, 2016

Ignoring the shorthand for only specifying a description for the moment, I think the YAML could be improved:

field1:
  description: The description of field 1
field2:
  type: String
  description: The description of field 2
  attributes:
    constraints: Not null
    remarks: Lorem ipsem

The equivalent properties would be:

field1.description = The description of field 1
field2.type = String
field2.description = The description of field 2
field2.attributes.constraints = Not null
field2.attributes.remarks = Lorem ipsem
0reactions
patrice-conilcommented, Oct 21, 2016

As we also use swagger, i’ve made a maven plugin that generate FieldDescriptors from model classes. You should find this here: restdoc-helper

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding File Descriptors usage - MuleSoft Help Center
In simple terms a file descriptor is a handler used in the interface the user calls to give kernel instructions, to identify file...
Read more >
How to read from custom file descriptors without using unsafe?
How can I achieve the same result without using unsafe ? I am currently creating a file descriptor like this ( zsh shell):...
Read more >
How to Fix the 'Too Many Open Files' Error in Linux?
It means that a process has opened too many files (file descriptors) and cannot open new ones. On Linux, the “max open file...
Read more >
Text Load Set Table Descriptors - Oracle Help Center
You can create multiple Table Descriptors by uploading a zip file containing multiple metadata files. The system unzips the file, identifies and reads...
Read more >
File descriptors | CDP Public Cloud - Cloudera Documentation
Maximum allowed open fds reserved for use by the file cache. Hot replicas, 2 per WAL segment, 1 per WAL index, Number of...
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