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

GitHub | melwas | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Optional attributes with custom snippet

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