Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
Validating Configuration with JSON Schema: Editor IntelliSense, SchemaStore and Validation in CI
The .NET binder silently ignores a misspelled settings key; additionalProperties: false in JSON Schema catches it while you write the file and in CI. We write a 2020-12 schema for Bookstore.Api and validate with SchemaStore, a VS Code mapping, a YAML schema comment, check-jsonschema, ajv and JsonSchema.Net, showing with real output how mixed drafts and format checking differ.
Document Modeling 2: Schema Patterns, Schema Validation and Schema Evolution
MongoDB is not schemaless but flexible: patterns such as computed, subset, bucket, polymorphic and archive shape the model around what is read, and $jsonSchema validation protects data quality in the database; the constraint level in 9.0 guarantees that every document follows the rules. With real output: a review summary in the book, the latest 3 reviews, hourly buckets, three edition types in one collection, migration with schemaVersion, moderate versus strict and moving to constraint.