org.springframework.restdocs.mustache.MustacheException$Context: No method or field with name 'constraints' on line 8

GitHub | melwas | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Optional attributes with custom snippet

    GitHub | 6 months ago | melwas
    org.springframework.restdocs.mustache.MustacheException$Context: No method or field with name 'constraints' on line 8

    Root Cause Analysis

    1. org.springframework.restdocs.mustache.MustacheException$Context

      No method or field with name 'constraints' on line 8

      at org.springframework.restdocs.mustache.Template.checkForMissing()
    2. org.springframework.restdocs
      AsciidoctorTableCellContentLambda.execute
      1. org.springframework.restdocs.mustache.Template.checkForMissing(Template.java:270)
      2. org.springframework.restdocs.mustache.Template.getValue(Template.java:178)
      3. org.springframework.restdocs.mustache.Template.getValueOrDefault(Template.java:223)
      4. org.springframework.restdocs.mustache.Mustache$VariableSegment.execute(Mustache.java:787)
      5. org.springframework.restdocs.mustache.Template$1.execute(Template.java:131)
      6. org.springframework.restdocs.mustache.Template$1.execute(Template.java:124)
      7. org.springframework.restdocs.mustache.Template$Fragment.execute(Template.java:59)
      8. org.springframework.restdocs.templates.mustache.AsciidoctorTableCellContentLambda.execute(AsciidoctorTableCellContentLambda.java:36)
      8 frames