aws-cloudformation / aws-cloudformation/cloudformation-cli-java-plugin

`cfn init` shows warning: Could not find specified format 'date-time' for type 'string'. Defaulting to 'String'

Ouverte
#348 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Java
Étoiles
30
Forks
48
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

```shell
MacBook@ ~/workspace/test-r-p $ cfn --version
cfn 0.2.1
MacBook@ ~/workspace/test-r-p $ cfn init
Initializing new project
Do you want to develop a new resource(r) or a module(m)?.
>> r
What's the name of your resource type?
(Organization::Service::Resource)
>> mparnisa::test::rp
Select a language for code generation:
[1] go
[2] java
[3] python36
[4] python37
(enter an integer):
>> 2
Enter a package name (empty for default 'com.mparnisa.test.rp'):
>>
Choose codegen model - 1 (default) or 2 (guided-aws):
>> 1
Could not find specified format 'date-time' for type 'string'. Defaulting to 'String'
Could not find specified format 'date-time' for type 'string'. Defaulting to 'String'
Initialized a new project in /Users/mparnisa/workspace/test-r-p
```

In the RPDK log:

```
[2021-01-11T22:30:50Z] DEBUG - ResourceModel POJO: /Users/mparnisa/workspace-sync/test-r-p/target/generated-sources/rpdk/com/mparnisa/test/rp/ResourceModel.java
[2021-01-11T22:30:50Z] ERROR - Could not find specified format 'date-time' for type 'string'. Defaulting to 'String'
[2021-01-11T22:30:50Z] ERROR - Could not find specified format 'date-time' for type 'string'. Defaulting to 'String'
[2021-01-11T22:30:50Z] DEBUG - Overwriting '/Users/mparnisa/workspace-sync/test-r-p/target/generated-sources/rpdk/com/mparnisa/test/rp/ResourceModel.java'
```

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Reproduisez l’avertissement avec cfn 0.2.1 en exécutant cfn init pour une ressource Java et en sélectionnant codegen model 1. Commencez par le chemin de la ResourceModel.java générée et les entrées de journal RPDK présentées dans le rapport, puis déterminez quelle étape de génération gère le format date-heure. C’est terminé lorsque cfn init s’achève sans l’avertissement signalé et que le modèle généré est produit comme prévu.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
cli, devtools
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.