Coder Social home page Coder Social logo

beanvalidation-spec's Introduction

Bean Validation specification

This repository contains the Bean Validation specification. For more information on Bean Validation and the work in progress, go to http://beanvalidation.org.

Building docs

You need to have Apache Ant installed on your system and available on your classpath. The build file build.xml is located in this directory and all commands are relative to this directory.

  • Running ant all.doc builds both PDF and HTML output in the build/ directory. all.doc is also the default target.
  • Running ant clean will clean up output HTML and PDF files.

Tagging phrases for the TCK

The Bean Validation TCK is a suite of unit tests for validating the compliance of Bean Validation implementations with the specification.

The tests of the TCK are based on assertions representing sentences and phrases in this specification. The role attribute is used to mark those text elements (<para>, phrase etc.) of the specification which shall lead to an assertion in the TCK. The following values are allowed:

  • tck-testable: The tagged element shall be represented by a testable assertion in the TCK
  • tck-not-testable: The tagged element shall be represented by a non-testable assertion in the TCK (e.g. assertions regarding thread safety)
  • tck-ignore: The tagged element shall be excluded when creating a TCK assertion for an outer element. Can be used to exlude explanatory phrases contained in a para marked as tck-testable.
  • tck-needs-update: The tagged element shall be marked with a note in the TCK audit file saying that the tests for this assertion need to be updated, e.g. due to a spec update. Can be used together with tck-testable and tck-not-testable: <para role="tck-testable tck-needs-update">.

Updating the TCK audit file

The TCK audit file is an XML file containing all assertions of the TCK. This file is generated with help of an XSL transformation which is applied to the DocBook files.

The generation is executed by running ant createTckAuditFile. This is required whenever tagged elements have been added, updated, removed or changed their position within all tagged elements of a section.

The generated file build/tck-audit.xml should be formatted with a line width of 100 characters (allowing for easier comparisons between versions) and must be checked into the TCK project. If an update changed the section numbers of existing assertions, the corresponding tests need to be adapted as well since they reference the section numbers in the @SpecAssertion annotation.

Contributing to the specification

The recommended approach to contribute to the spec is via GitHub pull requests. More on contribution at http://beanvalidation.org/contribute/

Recommended tools by decreasing order of preference:

  1. XMLMind XML Editor
  2. Any XML editor

Make sure to not go beyond 80 columns per line.

beanvalidation-spec's People

Contributors

emmanuelbernard avatar gunnarmorling avatar hferentschik avatar stevep001 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.