GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Hello world main
  • Hello world service
  • Programs and modules
  • Main function
  • Init function
  • Variables and types
  • Identifiers
  • Integers
  • Floating point numbers
  • Decimal type
  • Nil
  • Boolean
  • Byte type
  • Strings

This view

  • Original page
  • New address

GeezerVison is showing ballerina.io — Payload constraint validation - The Ballerina programming language

Back to Examples

    • Hello world main
    • Hello world service

    • Programs and modules
    • Main function
    • Init function
    • Variables and types
    • Identifiers

    • Integers
    • Floating point numbers
    • Decimal type
    • Nil
    • Boolean
    • Byte type

    • Strings

    • Binary operators
    • Unary operators

    • If statement
    • Match statement
    • Match guard in match statement
    • Binding patterns in match statement

    • Functions
    • Included record parameters
    • Rest parameters
    • Default values for function parameters
    • Provide function arguments by name
    • Rest arguments
    • Function pointers
    • Function values
    • Function types
    • Anonymous function
    • Function closure

    • Foreach statement
    • While statement
    • Break statement
    • Continue statement
    • Range function

    • Langlib functions

    • Structural typing
    • Unions
    • Errors
    • Anydata type
    • Any type
    • Type definitions
    • Typedesc type
    • Covariance
    • Type inference
    • Built-in integer subtypes
    • Built-in string subtype
    • ensureType function
    • Dependent types
    • Singleton types
    • Stream type
    • Never type

    • Expression-oriented style

    • Expression equality

    • Arrays
    • Nested arrays
    • Tuples
    • Rest type in tuples
    • Filler values of a list
    • List subtyping
    • List equality
    • Binary data

    • Maps
    • Records
    • Computed field key

    • Optional fields
    • Open records
    • Controlling openness
    • Type inclusion for records
    • Default values for record fields

    • Array/Map symmetry

    • Object
    • Defining classes
    • Object constructor
    • Object value from class definition
    • Visibility of object fields and methods
    • Init return type
    • Object types
    • Object type inclusion
    • Distinct object types
    • Object closure
    • Client class
    • Start service from service class definition

    • Binding patterns
    • Typed binding pattern
    • Wildcard binding pattern
    • List binding patterns
    • Rest binding pattern in list binding pattern
    • Mapping binding pattern
    • Rest binding pattern in mapping binding pattern
    • Error binding pattern
    • Rest binding pattern in error binding pattern
    • Single use of typed binding patterns
    • Single use of typed binding patterns with on fail clause
    • Iterative use of typed binding patterns
    • List binding pattern in match statement
    • Mapping binding pattern in match statement
    • Error binding pattern in match statement

    • Table
    • Table types
    • Multiple key fields
    • Structured keys

    • Query expressions
    • Sort iterable objects
    • Let clause
    • Limit clause
    • Join iterable objects
    • Outer Join clause
    • Query tables
    • Create tables with a query
    • Create maps with a query
    • Create streams with a query
    • On conflict clause
    • Advanced conflict handling
    • Iterate over XML with a query
    • Nested query expressions
    • Destructure records using a query
    • Querying streams
    • Aggregation

    • Query actions

    • JSON type
    • Access JSON elements
    • Access optional JSON elements
    • Match statement with maps
    • Convert from user-defined type to JSON
    • Convert from table and XML to JSON
    • Convert from JSON to user-defined type
    • Cast JSON to user-defined type
    • Resource method typing
    • JSON numbers
    • JSON to record
    • JSON to record with projection
    • JSONPath expressions

    • Raw templates
    • String templates
    • XML templates

    • XML data model
    • XML operations
    • XML iteration
    • XML access
    • XML mutation
    • XML subtyping
    • XML navigation
    • XML templates and query
    • XML namespaces
    • XMLNS declarations
    • XML to record
    • XML to record with projection

    • RegExp type
    • RegExp operations overview
    • RegExp replace operations
    • RegExp find operations
    • RegExp match operations

    • Documentation
    • Annotations

    • Consume services: client objects
    • Provide services
    • Module lifecycle
    • Service declaration
    • Resource methods
    • Hierarchical resources
    • Resource path parameters

    • Configurable variables
    • Configure via TOML files
    • Configure via CLI arguments

    • Error handling
    • Check expression
    • Error subtyping
    • Panics
    • Trap expression
    • Type intersection for error types
    • Error detail
    • Error cause

    • Ignore return values and errors

    • Identity
    • Const and final
    • Enumerations
    • Immutability

    • Asynchronous function calls
    • Named workers
    • Sequence diagrams
    • Wait for workers
    • Strands
    • Named worker return values
    • Alternate wait
    • Multiple wait
    • Named workers and futures
    • Inter-worker message passing
    • Alternate receive
    • Multiple receive
    • Conditional send
    • Inter-worker failure propagation
    • Named worker with on fail clause
    • Synchronize message passing
    • Asynchronize message passing
    • Flush
    • Fork

    • Transaction statement
    • Check semantics
    • Rollback
    • Retry transaction statement
    • Transactional qualifier
    • Transactional named workers
    • Commit/rollback handlers

    • Lock statement
    • Isolated functions
    • Readonly type
    • Readonly and isolated
    • Readonly objects and classes
    • Combining isolated functions and lock
    • Isolated variables
    • Isolated methods
    • Isolated objects
    • Inferring isolated
    • Run strands safely on separate threads

    • Interface to external code

    • Assertions
    • Before and after test
    • Before and after each
    • Before and after groups
    • Before and after suite
    • Data-driven tests
    • Guarantee test execution order
    • Group tests
    • Function mocking
    • Object mocking

    • Basic REST service
    • Service and resource paths
    • Payload data binding
    • Payload constraint validation
    • Path parameter
    • Query parameter
    • Header parameter
    • Send response
    • Send different status codes
    • Send different status codes with payload
    • Error handling
    • Send cache response

    • Send request/Receive response
    • Payload data binding
    • Payload constraint validation
    • Path parameter
    • Query parameter
    • Header parameter
    • Enable caching

    • SSL/TLS
    • Mutual SSL
    • Basic authentication file user store
    • Basic authentication LDAP user store
    • JWT authentication
    • OAuth2

    • SSL/TLS
    • Mutual SSL
    • Basic authentication
    • Bearer token authentication
    • Self-signed JWT authentication
    • OAuth2 client credentials grant type
    • OAuth2 password grant type
    • OAuth2 refresh token grant type
    • OAuth2 JWT bearer grant type

    • Timeout
    • Retry
    • Circuit breaker
    • Load balancer
    • Failover

    • Default resource
    • Request/Response object
    • Caller object
    • Redirects
    • CORS
    • 100 continue
    • Matrix parameter
    • Restrict by media type
    • File upload
    • Compression
    • Trace logs
    • Access logs
    • Cookies
    • Chunking
    • Sending headers
    • Response with multiparts
    • Passthrough
    • HTTP/2 to HTTP/1.1 downgrade
    • HTTP/2 server push
    • Server-sent events

    • Redirects
    • File upload
    • Cookies
    • Chunking
    • Request with multiparts
    • HTTP/2 to HTTP/1.1 downgrade
    • HTTP/2 prior knowledge
    • HTTP/2 server push
    • Server-sent events

    • Request interceptor
    • Response interceptor
    • Error handling
    • Interceptor error handling

    • Hello world
    • Service as output object
    • Record as output object
    • Input types
    • Mutations
    • Subscriptions
    • Input objects
    • ID scalar type
    • Interfaces
    • Interfaces implementing interfaces
    • Union types
    • Error handling
    • GraphiQL client
    • Documentation
    • Directives
    • Hierarchical resource paths

    • Context object
    • Field object
    • Service interceptors
    • Field interceptors
    • Interceptor configurations
    • Input constraint validation
    • File upload
    • Dataloader
    • Custom prefetch methods
    • Operation-level caching
    • Field-level caching
    • Cache invalidation
    • Query Complexity

    • Query GraphQL endpoint
    • Handle partial response
    • Handle error response

    • SSL/TLS
    • Mutual SSL
    • Basic authentication file user store
    • Basic authentication LDAP user store
    • JWT authentication
    • OAuth2

    • SSL/TLS
    • Mutual SSL
    • Basic authentication
    • Self-signed JWT authentication
    • OAuth2 password grant type

    • Send/Receive message
    • Payload constraint validation
    • Error handling
    • Query parameter

    • Send/Receive message
    • Payload constraint validation

    • SSL/TLS
    • Mutual SSL
    • Basic authentication file user store
    • Basic authentication LDAP user store
    • JWT authentication
    • OAuth2

    • SSL/TLS
    • Mutual SSL
    • Basic authentication
    • Bearer token authentication
    • Self-signed JWT authentication
    • OAuth2 client credentials grant type
    • OAuth2 password grant type
    • OAuth2 refresh token grant type
    • OAuth2 JWT bearer grant type

    • Timeout
    • Retry

    • Consume github events

    • Dynamic listener
    • StopHandler

    • Simple RPC
    • Server-side streaming RPC
    • Client-side streaming RPC
    • Bidirectional streaming RPC
    • Send/Receive headers
    • Server reflection
    • Check deadline

    • Simple RPC
    • Server-side streaming RPC
    • Client-side streaming RPC
    • Bidirectional streaming RPC
    • Send/Receive headers
    • Set deadline

    • SSL/TLS
    • Mutual SSL
    • Basic authentication file user store
    • Basic authentication LDAP user store
    • JWT authentication
    • OAuth2

    • SSL/TLS
    • Mutual SSL
    • Basic authentication
    • Bearer token authentication
    • Self-signed JWT authentication
    • OAuth2 client credentials grant type
    • OAuth2 password grant type
    • OAuth2 refresh token grant type
    • OAuth2 JWT bearer grant type

    • Consume message
    • Send reply to request message
    • Constraint validations
    • Consume JetStream message

    • Publish message
    • Send request message
    • Publish message

    • SSL/TLS
    • Basic authentication

    • SSL/TLS
    • Basic authentication

    • Consume message
    • Constraint validation
    • Error handling

    • Produce message

    • Payload data binding
    • Consumer record data binding
    • Constraint validation

    • SSL/TLS
    • SASL authentication

    • SSL/TLS
    • SASL authentication

    • SSL/TLS
    • SASL authentication

    • Send/Receive

    • SSL/TLS
    • Inbound Security
    • Outbound Security

    • Consume message
    • Consume message with acknowledgement
    • Transactional consumer
    • Constraint validation

    • Declare a queue
    • Produce message
    • Consume message
    • Transactional producer
    • Constraint validation

    • SSL/TLS
    • Basic authentication

    • SSL/TLS
    • Basic authentication

    • Subscribe to messages

    • Publish message

    • SSL/TLS
    • Basic authentication

    • SSL/TLS
    • Basic authentication

    • Add/Remove entries
    • Search for an entry

    • Consume message

    • Produce message
    • Transactions

    • Consume message
    • Manual acknowledgment

    • Send/Receive bytes

    • Send/Receive bytes

    • SSL/TLS

    • SSL/TLS

    • Send/Receive datagram

    • Send/Receive datagram
    • Send/Receive datagram with connection

    • Receive email

    • Send email
    • Receive email

    • SSL/TLS

    • SSL/TLS

    • Receive file
    • Caller object

    • Write file
    • Read file

    • Receive file
    • Caller object

    • Write file
    • Read file

    • Receive file
    • Caller object

    • Write file
    • Read file

    • Simple query
    • Query with one result
    • Query with advanced mapping
    • DML and DDL operations
    • Batch execution
    • Atomic transactions
    • Call stored procedures

    • Listen to database
    • Group events by table

    • Serialization/Deserialization

    • Read/write bytes
    • Read/write strings
    • Read/write CSV
    • Read/write CSV with data mapping
    • Read/write JSON
    • Read/write XML

    • Message store type
    • In-memory message store
    • Message Store Listener

    • Cryptographic operations
    • JWT issue/validate

    • URL encode/decode operations

    • UTC time
    • Time with zone offset
    • Time formatting/parsing
    • Time Zone

    • Cache basics
    • Cache invalidation

    • Logging
    • Logging with context
    • Error Logging
    • Configure logging
    • Log file rotation
    • Child loggers with context
    • Logger from configuration
    • Custom logger
    • Sensitive data logging

    • EDI to record conversion
    • Record to EDI conversion
    • Read EDI envelope headers
    • Parse an EDI interchange

    • Environment variables

    • File paths
    • Directories
    • Files
    • Temp files and directories
    • Directory listener

    • Random numbers

    • Schedule job recurrence by frequency
    • Schedule one time job
    • Manage scheduled jobs

    • Generate UUID
    • UUID operations

    • Create a ZIP archive
    • Extract a ZIP archive
    • Unpack an untrusted archive

    • XSLT transformation

    • XML to JSON conversion
    • JSON to XML conversion
    • XML to record conversion
    • Record to XML conversion

    • YAML to anydata
    • YAML to anydata with projection
    • Serialize to YAML string

    • Convert CSV string to records
    • Convert CSV string to arrays
    • Parse CSV byte streams to records
    • Parse CSV lists to custom types
    • Transform CSV records to custom types
    • Handle CSV with custom configurations

    • Parse Excel file to records
    • Write records to Excel file
    • Work with Excel tables
    • Parse Excel file to records - advanced

    • Constraint validations

    • Workflow
    • Activity
    • Data events
    • Durable sleep

    • Human task
    • Human task with REST API

    • Durable agent
    • Durable agent with human task
    • Durable agent with data events

    • Direct LLM calls
    • Direct LLM calls with history
    • Direct LLM calls with multimodal input

    • RAG with in-memory vector store
    • RAG ingestion with external vector store
    • RAG query with external vector store

    • MCP service
    • MCP advanced service

    • Agent with local tools
    • Agent with MCP integration
    • Agent with external endpoint integration
    • Chat agents
    • Agent with tool kits

    • Natural expressions

    • Hello world

    • Hello world

    • Hello world
    • Execution context
    • S3 trigger
    • DynamoDB trigger

    • Hello world
    • Timer trigger
    • HTTP trigger with queue
    • Cosmos DB trigger

    • Get all
    • Get by key
    • Select fields
    • Filter and sort
    • Relation queries

    • Create/Create many
    • Update
    • Delete

    • Distributed tracing

    • Gauge-based metrics
    • Counter-based metrics
You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.