Skip to content

Schema.org Structured Data Validator (schema-test) #1

Description

@khoipro

Mô tả

schema-test là Schema.org structured data validator — accuracy-matched tới validator.schema.org của Google. Fork từ schemacraft-validator.

Kiến trúc

  • Node.js/TypeScript — Express server, CORS, CLI
  • Docker — Multi-stage build, Node 20 Alpine

API Endpoints

Method Path Description
GET /health Health check
POST /validate Validate URL, raw HTML, or raw JSON-LD
POST /validate/batch Batch validate (max 100 URLs)

Test Coverage

  • ✅ 203 tests (20 test files)
  • ✅ 22 accuracy fixtures (100% match vs validator.schema.org)
  • ✅ Docker build + healthcheck verified

Action Items

  • Push Docker image lên registry (cần token write:packages)
  • Setup deployment
  • Tích hợp với Laravel app (qua HTTP API)
  • Viết document cho team Engineer
  • Setup CI/CD

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions