Skip to content

Migrate to vertex connections #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 32 commits into from
Feb 23, 2022
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f1ef0c9
Migrate to vertex connections
sandrokeil Jul 9, 2021
e140cf6
Add support for role and hotSpot type
sandrokeil Jul 21, 2021
9aca0a7
Rename streamCollection to stream
sandrokeil Jul 23, 2021
d9322bc
Use camelCase
sandrokeil Jul 23, 2021
c2ecdbc
Add missing metadata class for external system
sandrokeil Jul 23, 2021
f4ce3a8
Add support for generating class map
sandrokeil Jul 23, 2021
7b1d577
Use camelCase instead of snake_case for constant values (message name…
sandrokeil Jul 26, 2021
6683fb8
Message name should be PascalCase
sandrokeil Jul 27, 2021
ad63cdf
Catch metadata parsing errors to improve error message
sandrokeil Jul 27, 2021
566052d
Introduce feature metadata voNamespace and always make value objects …
sandrokeil Jul 27, 2021
2d29b10
Add Behaviour suffix to aggregate class and move aggregate state clas…
sandrokeil Jul 27, 2021
fd51555
Use printer from config
sandrokeil Aug 4, 2021
2b7c1ba
Update open-code-modeling/json-schema-to-php-ast to 0.6.x-dev
sandrokeil Aug 5, 2021
f90c6cb
Generate API description with JsonSchemaArray::fromFile() method
sandrokeil Aug 5, 2021
3cb816b
Generate schema files for command, event and value objects in same na…
sandrokeil Aug 6, 2021
d81c02b
Fix not needed namespace import
sandrokeil Aug 27, 2021
196d0e6
Support namespace definition with FQCN and remove shared option support
sandrokeil Aug 27, 2021
e0218fe
Use voNamespace from current vertex instead of feature vertex and sup…
sandrokeil Sep 17, 2021
65e0f66
Resolve metadata references
sandrokeil Sep 23, 2021
3708d4a
Exclude exception classes from immutable record
sandrokeil Sep 24, 2021
cf89452
Fix wrong identifier to support namespace
sandrokeil Sep 24, 2021
6af68c3
Generate query and resolver with api description
sandrokeil Oct 1, 2021
9e946ad
Generate finder class for query
sandrokeil Oct 6, 2021
cd994c9
Generate finder class methods for query
sandrokeil Oct 6, 2021
2042264
Add missing namespace import for TypeRef
sandrokeil Oct 8, 2021
01dcaca
Set "is required" from type to resolved type
sandrokeil Oct 8, 2021
a63d426
Merge remote-tracking branch 'origin/feature/simplify-connections' in…
sandrokeil Oct 8, 2021
9a1a181
Add some method body lines for queries
sandrokeil Oct 8, 2021
e0ce49e
Generate complete resolver method
sandrokeil Oct 15, 2021
44b9077
Generate complete finder method and collection class
sandrokeil Oct 15, 2021
cf95658
Update event-engine/php-inspectio-graph-cody to ^0.1.0 and prooph/php…
sandrokeil Feb 23, 2022
726c2d5
Suggest laminas/laminas-filter
sandrokeil Feb 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set "is required" from type to resolved type
  • Loading branch information
sandrokeil committed Oct 8, 2021
commit 01dcacad60757770cfa2d8bfe09f9eabcd9da441
4 changes: 3 additions & 1 deletion src/Metadata/InspectioJson/JsonMetadataTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ private function resolveTypes(TypeSet $typeSet, VertexConnectionMap $vertexConne
&& $documentMetadata instanceof HasTypeSet
&& ($docTypeSet = $documentMetadata->typeSet())
) {
$type->setResolvedType($docTypeSet);
$resolvedTypeSet = clone $docTypeSet;
$resolvedTypeSet->setIsRequired($type->isRequired());
$type->setResolvedType($resolvedTypeSet);
}
}
}
Expand Down