Skip to content
Merged

Dev #16

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b0473fd
fix: PHP version for ci
milinsky Jan 24, 2026
5fed12b
fix: Infection tests
milinsky Jan 24, 2026
ab10cd8
fix: Infection tests
milinsky Jan 24, 2026
1e20c67
fix: Infection tests
milinsky Jan 24, 2026
526993a
fix: Delete dublicate
milinsky Jan 24, 2026
903d389
tests: Add unit tests for models
milinsky Jan 24, 2026
48300eb
tests: Add errors tests
milinsky Jan 24, 2026
a5d9c24
tests: Add validators tests
milinsky Jan 24, 2026
f5a59a0
tests: Add request body tests
milinsky Jan 24, 2026
a5b0211
tests: Add response tests
milinsky Jan 24, 2026
9d7e652
tests: Add request tests
milinsky Jan 24, 2026
9d42ff3
tests: Add schema validators tests
milinsky Jan 24, 2026
db81600
tests: Add schema validators tests
milinsky Jan 24, 2026
c547b62
tests: Add builder tests
milinsky Jan 24, 2026
38b655b
tests: Add webhook tests
milinsky Jan 24, 2026
4adc4a7
tests: Fix tests issues
milinsky Jan 24, 2026
4eb8cce
feat: Add PathFinder and Middleware support
milinsky Jan 24, 2026
59d327d
docs: Update readme
milinsky Jan 25, 2026
62eea58
reg: Remove Middleware feature
milinsky Jan 26, 2026
1e9208c
ref: Improve OpenApiValidator class
milinsky Jan 26, 2026
02efdd5
fix: Path parameters coercion
milinsky Jan 26, 2026
59b1955
improve: Add functional tests and bug fixes
milinsky Jan 27, 2026
f338a6c
tests: Add edge cases tests
milinsky Feb 4, 2026
bca63e4
fix: cs
milinsky Feb 4, 2026
a587513
ref: Deduplication code
milinsky Feb 4, 2026
6a89c34
ref: Deduplication code + bug fixes
milinsky Feb 6, 2026
f471fa2
fix: Update README
milinsky Feb 7, 2026
a97d882
fix: Update README
milinsky Feb 7, 2026
5ee24db
ref: refactoring and bug fixes
milinsky Feb 15, 2026
35eb0b4
Update Readme
milinsky Feb 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ jobs:
- name: Run Psalm
run: vendor/bin/psalm --shepherd

- name: Run Infection
run: vendor/bin/infection --test-framework-options="--testsuite=main" --show-mutations
env:
STRIPE_API_KEY: ${{ secrets.STRIPE_API_KEY }}

- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v6
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.idea/
vendor/
coverage/
.phpunit.cache/
composer.lock
/.php-cs-fixer.cache
Expand Down
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Changelog

All notable changes to this project will be documented in this file.

## [Unreleased]

### Security
- Fixed XXE vulnerability in XmlBodyParser
- Added circular reference protection in RefResolver

### Fixed
- Fixed $ref handling in JsonParser for Parameter and Response
- Fixed empty array type ambiguity with configurable strategy

### Changed
- Refactored JsonParser and YamlParser to use shared OpenApiBuilder
- Removed Psalm global suppressions, improved type safety
- Added `final` modifier to all non-readonly classes
- Created psalm-baseline.xml for legitimate mixed type suppressions

### Added
- EmptyArrayStrategy enum for configurable empty array validation
- Security tests for XXE protection
- Comprehensive test coverage for ref resolution

## [Unreleased] - Breaking Changes

### Added

- Added `Operation` class for encapsulating path and method
- Added `PathFinder` for automatic operation detection
- Added `ValidationMiddleware` for PSR-15 support
- Added `ValidationMiddlewareBuilder` for fluent middleware creation
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ infection:

.PHONY: psalm
psalm:
docker-compose run --rm php vendor/bin/psalm
docker-compose run --rm php vendor/bin/psalm --no-cache --threads=1

.PHONY: cs-fix
cs-fix:
Expand Down Expand Up @@ -54,6 +54,8 @@ init:
@echo "Package name (kebab-case): $(NAME)"
@echo "Namespace (PascalCase): $(PASCAL_NAME)"

.PHONY: build
build:
docker-compose build
docker-compose run --rm php composer install

Loading