Skip to content

Commit

Permalink
fix: nullable usages of ImagemFindOneResultView as cover image
Browse files Browse the repository at this point in the history
  • Loading branch information
guesant committed Oct 24, 2024
1 parent dd4f0fd commit 7bca856
Show file tree
Hide file tree
Showing 61 changed files with 442 additions and 137 deletions.
8 changes: 8 additions & 0 deletions .changeset/cuddly-foxes-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@ladesa-ro/especificacao": patch
"@ladesa-ro/especificacao.json-schema": patch
"@ladesa-ro/especificacao.dotnet": patch
"@ladesa-ro/especificacao.definitions": patch
---

fix: nullable usages of ImagemFindOneResultView as cover image
3 changes: 3 additions & 0 deletions definitions/src/schemas/modules/00-01-base-lugares/index.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import "./cidade.tsp";
import "./estado.tsp";
import "./endereco.tsp";
4 changes: 2 additions & 2 deletions definitions/src/schemas/modules/01-autenticacao/usuario.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ model Usuario {
@entity(Tokens.Usuario_View)
model UsuarioView {
...OmitProperties<Usuario, "imagemCapa" | "imagemPerfil">;
imagemCapa: ImagemFindOneResultView;
imagemPerfil: ImagemFindOneResultView;
imagemCapa: ImagemFindOneResultView | null;
imagemPerfil: ImagemFindOneResultView | null;
}

/** Dados de entrada para encontrar um Usuário por ID. */
Expand Down
2 changes: 1 addition & 1 deletion definitions/src/schemas/modules/02-ambientes/ambiente.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ model Ambiente {
model AmbienteView {
...OmitProperties<Ambiente, "bloco" | "imagemCapa">;
bloco: BlocoFindOneResultView;
imagemCapa: ImagemFindOneResultView;
imagemCapa: ImagemFindOneResultView | null;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion definitions/src/schemas/modules/02-ambientes/bloco.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ model Bloco {
model BlocoView {
...OmitProperties<Bloco, "campus" | "ambientes" | "imagemCapa">;
campus: CampusFindOneResultView;
imagemCapa: ImagemFindOneResultView;
imagemCapa: ImagemFindOneResultView | null;
ambientes: AmbienteFindOneResultView[];
}

Expand Down
3 changes: 0 additions & 3 deletions definitions/src/schemas/modules/02-ambientes/index.tsp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import "./cidade.tsp";
import "./estado.tsp";
import "./endereco.tsp";
import "./campus.tsp";
import "./bloco.tsp";
import "./ambiente.tsp";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ model CursoView {
...OmitProperties<Curso, "campus" | "ofertaFormacao" | "imagemCapa">;
campus: CampusFindOneResultView;
ofertaFormacao: OfertaFormacaoFindOneResultView;
imagemCapa: ImagemFindOneResultView;
imagemCapa: ImagemFindOneResultView | null;
}

/** Dados de entrada para encontrar um Curso por ID. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ model Disciplina {
@entity(Tokens.Disciplina_View)
model DisciplinaView {
...OmitProperties<Disciplina, "imagemCapa">;
imagemCapa: ImagemFindOneResultView;
imagemCapa: ImagemFindOneResultView | null;
}

/** Dados de entrada para encontrar uma Disciplina por ID. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ model DiarioView {
turma: TurmaFindOneResultView;
disciplina: DisciplinaFindOneResultView;
ambientePadrao: AmbienteFindOneResultView | null;
imagemCapa: ImagemFindOneResultView;
imagemCapa: ImagemFindOneResultView | null;
}

/** Dados de entrada para encontrar um diário por ID. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ model TurmaView {
...OmitProperties<Turma, "curso" | "ambientePadraoAula" | "imagemCapa">;
curso: CursoFindOneResultView;
ambientePadraoAula: AmbienteFindOneResultView;
imagemCapa: ImagemFindOneResultView;
imagemCapa: ImagemFindOneResultView | null;
}

/** Dados de entrada para encontrar uma Turma por ID. */
Expand Down
2 changes: 0 additions & 2 deletions definitions/src/schemas/modules/ensino/index.tsp

This file was deleted.

10 changes: 6 additions & 4 deletions definitions/src/schemas/modules/index.tsp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import "./00-base/index.tsp";
import "./00-00-base/index.tsp";
import "./00-01-base-lugares/index.tsp";
import "./01-autenticacao/index.tsp";
import "./02-ambientes/index.tsp";
import "./03-autorizacao/index.tsp";
import "./calendario/index.tsp";
import "./ensino/index.tsp";
import "./horarios/index.tsp";
import "./04-ensino-institucional/index.tsp";
import "./05-calendario/index.tsp";
import "./06-ensino-discente/index.tsp";
import "./07-horarios/index.tsp";
73 changes: 73 additions & 0 deletions integrations/dotnet/.config/project.assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"version": 3,
"targets": {
"net8.0/linux-x64": {
"csharpier/0.29.2": {
"type": "package",
"tools": {
"tools/net8.0/any/CSharpier.dll": {},
"tools/net8.0/any/CSharpier.pdb": {},
"tools/net8.0/any/DotnetToolSettings.xml": {},
"tools/net8.0/any/INIFileParser.dll": {},
"tools/net8.0/any/Ignore.dll": {},
"tools/net8.0/any/Microsoft.CodeAnalysis.CSharp.dll": {},
"tools/net8.0/any/Microsoft.CodeAnalysis.dll": {},
"tools/net8.0/any/NReco.Logging.File.dll": {},
"tools/net8.0/any/System.CommandLine.dll": {},
"tools/net8.0/any/System.IO.Abstractions.TestingHelpers.dll": {},
"tools/net8.0/any/System.IO.Abstractions.dll": {},
"tools/net8.0/any/System.IO.Hashing.dll": {},
"tools/net8.0/any/TestableIO.System.IO.Abstractions.TestingHelpers.dll": {},
"tools/net8.0/any/TestableIO.System.IO.Abstractions.Wrappers.dll": {},
"tools/net8.0/any/TestableIO.System.IO.Abstractions.dll": {},
"tools/net8.0/any/YamlDotNet.dll": {},
"tools/net8.0/any/cs/Microsoft.CodeAnalysis.CSharp.resources.dll": {},
"tools/net8.0/any/cs/Microsoft.CodeAnalysis.resources.dll": {},
"tools/net8.0/any/cs/System.CommandLine.resources.dll": {},
"tools/net8.0/any/de/Microsoft.CodeAnalysis.CSharp.resources.dll": {},
"tools/net8.0/any/de/Microsoft.CodeAnalysis.resources.dll": {},
"tools/net8.0/any/de/System.CommandLine.resources.dll": {},
"tools/net8.0/any/dotnet-csharpier.deps.json": {},
"tools/net8.0/any/dotnet-csharpier.dll": {},
"tools/net8.0/any/dotnet-csharpier.pdb": {},
"tools/net8.0/any/dotnet-csharpier.runtimeconfig.json": {},
"tools/net8.0/any/es/Microsoft.CodeAnalysis.CSharp.resources.dll": {},
"tools/net8.0/any/es/Microsoft.CodeAnalysis.resources.dll": {},
"tools/net8.0/any/es/System.CommandLine.resources.dll": {},
"tools/net8.0/any/fr/Microsoft.CodeAnalysis.CSharp.resources.dll": {},
"tools/net8.0/any/fr/Microsoft.CodeAnalysis.resources.dll": {},
"tools/net8.0/any/fr/System.CommandLine.resources.dll": {},
"tools/net8.0/any/it/Microsoft.CodeAnalysis.CSharp.resources.dll": {},
"tools/net8.0/any/it/Microsoft.CodeAnalysis.resources.dll": {},
"tools/net8.0/any/it/System.CommandLine.resources.dll": {},
"tools/net8.0/any/ja/Microsoft.CodeAnalysis.CSharp.resources.dll": {},
"tools/net8.0/any/ja/Microsoft.CodeAnalysis.resources.dll": {},
"tools/net8.0/any/ja/System.CommandLine.resources.dll": {},
"tools/net8.0/any/ko/Microsoft.CodeAnalysis.CSharp.resources.dll": {},
"tools/net8.0/any/ko/Microsoft.CodeAnalysis.resources.dll": {},
"tools/net8.0/any/ko/System.CommandLine.resources.dll": {},
"tools/net8.0/any/pl/Microsoft.CodeAnalysis.CSharp.resources.dll": {},
"tools/net8.0/any/pl/Microsoft.CodeAnalysis.resources.dll": {},
"tools/net8.0/any/pl/System.CommandLine.resources.dll": {},
"tools/net8.0/any/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll": {},
"tools/net8.0/any/pt-BR/Microsoft.CodeAnalysis.resources.dll": {},
"tools/net8.0/any/pt-BR/System.CommandLine.resources.dll": {},
"tools/net8.0/any/ru/Microsoft.CodeAnalysis.CSharp.resources.dll": {},
"tools/net8.0/any/ru/Microsoft.CodeAnalysis.resources.dll": {},
"tools/net8.0/any/ru/System.CommandLine.resources.dll": {},
"tools/net8.0/any/tr/Microsoft.CodeAnalysis.CSharp.resources.dll": {},
"tools/net8.0/any/tr/Microsoft.CodeAnalysis.resources.dll": {},
"tools/net8.0/any/tr/System.CommandLine.resources.dll": {},
"tools/net8.0/any/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll": {},
"tools/net8.0/any/zh-Hans/Microsoft.CodeAnalysis.resources.dll": {},
"tools/net8.0/any/zh-Hans/System.CommandLine.resources.dll": {},
"tools/net8.0/any/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll": {},
"tools/net8.0/any/zh-Hant/Microsoft.CodeAnalysis.resources.dll": {},
"tools/net8.0/any/zh-Hant/System.CommandLine.resources.dll": {}
}
}
}
},
"libraries": {},
"projectFileDependencyGroups": {}
}
Loading

0 comments on commit 7bca856

Please sign in to comment.